SupportBarF16.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "SupportBarF16.h"
  2. #include "Error.h"
  3. void SupportBarF16::test_barycenter_f16()
  4. {
  5. arm_barycenter_f16(this->inp, this->coefsp,
  6. this->outp,
  7. this->nbVectors,
  8. this->vecDim);
  9. }
  10. void SupportBarF16::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_F16_1:
  18. input.reload(SupportBarF16::SAMPLES_F16_ID,mgr,this->nbVectors*this->vecDim);
  19. coefs.reload(SupportBarF16::COEFS_F16_ID,mgr,this->nbVectors);
  20. output.create(this->vecDim,SupportBarF16::OUT_SAMPLES_F16_ID,mgr);
  21. this->inp = input.ptr();
  22. this->coefsp = coefs.ptr();
  23. this->outp = output.ptr();
  24. break;
  25. }
  26. }
  27. void SupportBarF16::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  28. {
  29. (void)id;
  30. (void)mgr;
  31. }