#include "UnaryQ15.h" #include "Error.h" void UnaryQ15::test_mat_scale_q15() { arm_mat_scale_q15(&this->in1,0x4000,1,&this->out); } void UnaryQ15::test_mat_trans_q15() { arm_mat_trans_q15(&this->in1,&this->out); } void UnaryQ15::test_mat_add_q15() { arm_mat_add_q15(&this->in1,&this->in1,&this->out); } void UnaryQ15::test_mat_sub_q15() { arm_mat_sub_q15(&this->in1,&this->in1,&this->out); } void UnaryQ15::setUp(Testing::testID_t id,std::vector& params,Client::PatternMgr *mgr) { std::vector::iterator it = params.begin(); this->nbr = *it++; this->nbc = *it; input1.reload(UnaryQ15::INPUTA_Q15_ID,mgr,this->nbr*this->nbc); output.create(this->nbr*this->nbc,UnaryQ15::OUT_Q15_ID,mgr); this->in1.numRows = this->nbr; this->in1.numCols = this->nbc; this->in1.pData = input1.ptr(); this->out.numRows = this->nbr; this->out.numCols = this->nbc; this->out.pData = output.ptr(); } void UnaryQ15::tearDown(Testing::testID_t id,Client::PatternMgr *mgr) { }