SupportBarF32.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "SupportBarF32.h"
  2. #include "Error.h"
  3. void SupportBarF32::test_barycenter_f32()
  4. {
  5. arm_barycenter_f32(this->inp, this->coefsp,
  6. this->outp,
  7. this->nbVectors,
  8. this->vecDim);
  9. }
  10. void SupportBarF32::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
  11. {
  12. std::vector<Testing::param_t>::iterator it = params.begin();
  13. this->nbVectors = *it++;
  14. this->vecDim = *it;
  15. switch(id)
  16. {
  17. case TEST_BARYCENTER_F32_1:
  18. input.reload(SupportBarF32::SAMPLES_F32_ID,mgr,this->nbVectors*this->vecDim);
  19. coefs.reload(SupportBarF32::COEFS_F32_ID,mgr,this->nbVectors);
  20. output.create(this->vecDim,SupportBarF32::OUT_SAMPLES_F32_ID,mgr);
  21. this->inp = input.ptr();
  22. this->coefsp = coefs.ptr();
  23. this->outp = output.ptr();
  24. break;
  25. }
  26. }
  27. void SupportBarF32::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  28. {
  29. }