1 #include "BinaryQ7.h"
2 #include "Error.h"
3 
4 
test_mat_mult_q7()5     void BinaryQ7::test_mat_mult_q7()
6     {
7       arm_mat_mult_q7(&this->in1,&this->in2,&this->out,this->pState);
8     }
9 
10 /*
11     void BinaryQ7::test_mat_cmplx_mult_q7()
12     {
13       arm_mat_cmplx_mult_q7(&this->in1,&this->in2,&this->out,this->pState);
14     }
15 
16     void BinaryQ7::test_mat_mult_fast_q7()
17     {
18       arm_mat_mult_fast_q7(&this->in1,&this->in2,&this->out,this->pState);
19     }
20 
21   */
setUp(Testing::testID_t id,std::vector<Testing::param_t> & params,Client::PatternMgr * mgr)22     void BinaryQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
23     {
24 
25 
26        std::vector<Testing::param_t>::iterator it = params.begin();
27        this->nbr = *it++;
28        this->nbi = *it++;
29        this->nbc = *it;
30 
31        switch(id)
32        {
33           /*
34           case BinaryQ7::TEST_MAT_CMPLX_MULT_Q7_2:
35             input1.reload(BinaryQ7::INPUTAC_Q7_ID,mgr,2*this->nbr*this->nbi);
36             input2.reload(BinaryQ7::INPUTBC_Q7_ID,mgr,2*this->nbi*this->nbc);
37             output.create(2*this->nbr*this->nbc,BinaryQ7::OUT_Q7_ID,mgr);
38             state.create(2*this->nbi*this->nbc,BinaryQ7::OUT_Q7_ID,mgr);
39           break;
40           */
41 
42           default:
43             input1.reload(BinaryQ7::INPUTA_Q7_ID,mgr,this->nbr*this->nbi);
44             input2.reload(BinaryQ7::INPUTB_Q7_ID,mgr,this->nbi*this->nbc);
45             state.create(this->nbi*this->nbc,BinaryQ7::OUT_Q7_ID,mgr);
46             output.create(this->nbr*this->nbc,BinaryQ7::OUT_Q7_ID,mgr);
47 
48        }
49 
50 
51 
52 
53        this->in1.numRows = this->nbr;
54        this->in1.numCols = this->nbi;
55        this->in1.pData = input1.ptr();
56 
57        this->in2.numRows = this->nbi;
58        this->in2.numCols = this->nbc;
59        this->in2.pData = input2.ptr();
60 
61        this->out.numRows = this->nbr;
62        this->out.numCols = this->nbc;
63        this->out.pData = output.ptr();
64 
65        this->pState = state.ptr();
66     }
67 
tearDown(Testing::testID_t id,Client::PatternMgr * mgr)68     void BinaryQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
69     {
70     }
71