1 #include "SupportBarF16.h" 2 #include "Error.h" 3 4 test_barycenter_f16()5 void SupportBarF16::test_barycenter_f16() 6 { 7 arm_barycenter_f16(this->inp, this->coefsp, 8 this->outp, 9 this->nbVectors, 10 this->vecDim); 11 } 12 13 14 setUp(Testing::testID_t id,std::vector<Testing::param_t> & params,Client::PatternMgr * mgr)15 void SupportBarF16::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr) 16 { 17 18 19 std::vector<Testing::param_t>::iterator it = params.begin(); 20 this->nbVectors = *it++; 21 this->vecDim = *it; 22 23 switch(id) 24 { 25 case TEST_BARYCENTER_F16_1: 26 input.reload(SupportBarF16::SAMPLES_F16_ID,mgr,this->nbVectors*this->vecDim); 27 coefs.reload(SupportBarF16::COEFS_F16_ID,mgr,this->nbVectors); 28 output.create(this->vecDim,SupportBarF16::OUT_SAMPLES_F16_ID,mgr); 29 30 this->inp = input.ptr(); 31 this->coefsp = coefs.ptr(); 32 this->outp = output.ptr(); 33 break; 34 35 } 36 37 38 } 39 tearDown(Testing::testID_t id,Client::PatternMgr * mgr)40 void SupportBarF16::tearDown(Testing::testID_t id,Client::PatternMgr *mgr) 41 { 42 (void)id; 43 (void)mgr; 44 45 } 46