1 #include "Test.h"
2 #include "Pattern.h"
3 
4 #include "dsp/matrix_functions.h"
5 
6 class BinaryTestsF32:public Client::Suite
7     {
8         public:
9             BinaryTestsF32(Testing::testID_t id);
10             virtual void setUp(Testing::testID_t,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr);
11             virtual void tearDown(Testing::testID_t,Client::PatternMgr *mgr);
12         private:
13             #include "BinaryTestsF32_decl.h"
14             Client::Pattern<float32_t> input1;
15             Client::Pattern<float32_t> input2;
16             Client::Pattern<float32_t> ref;
17             Client::Pattern<int16_t> dims;
18             Client::LocalPattern<float32_t> output;
19 
20             /* Local copies of inputs since matrix instance in CMSIS-DSP are not using
21                pointers to const.
22             */
23             Client::LocalPattern<float32_t> a;
24             Client::LocalPattern<float32_t> b;
25 
26             int nbr;
27             int nbc;
28 
29             arm_matrix_instance_f32 in1;
30             arm_matrix_instance_f32 in2;
31             arm_matrix_instance_f32 out;
32     };
33