1 #include "SupportBarF32.h"
2 #include "Error.h"
3 
4 
test_barycenter_f32()5     void SupportBarF32::test_barycenter_f32()
6     {
7       arm_barycenter_f32(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 SupportBarF32::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_F32_1:
26               input.reload(SupportBarF32::SAMPLES_F32_ID,mgr,this->nbVectors*this->vecDim);
27               coefs.reload(SupportBarF32::COEFS_F32_ID,mgr,this->nbVectors);
28               output.create(this->vecDim,SupportBarF32::OUT_SAMPLES_F32_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 SupportBarF32::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
41     {
42     }
43