Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #ifndef _MATRIX_TEST_DATA_H_ |
2 | #define _MATRIX_TEST_DATA_H_ |
||
3 | |||
4 | /*--------------------------------------------------------------------------------*/ |
||
5 | /* Includes */ |
||
6 | /*--------------------------------------------------------------------------------*/ |
||
7 | |||
8 | #include "arr_desc.h" |
||
9 | #include "arm_math.h" /* float32_t */ |
||
10 | |||
11 | /*--------------------------------------------------------------------------------*/ |
||
12 | /* Macros and Defines */ |
||
13 | /*--------------------------------------------------------------------------------*/ |
||
14 | #define MATRIX_TEST_MAX_ROWS 4 |
||
15 | #define MATRIX_TEST_MAX_COLS 4 |
||
16 | #define MATRIX_TEST_BIGGEST_INPUT_TYPE float64_t |
||
17 | #define MATRIX_TEST_MAX_ELTS (MATRIX_TEST_MAX_ROWS * MATRIX_TEST_MAX_COLS) |
||
18 | #define MATRIX_MAX_COEFFS_LEN 16 |
||
19 | #define MATRIX_MAX_SHIFTS_LEN 5 |
||
20 | |||
21 | /** |
||
22 | * Declare the matrix inputs defined by MATRIX_DEFINE_INPUTS. |
||
23 | */ |
||
24 | #define MATRIX_DECLARE_INPUTS(suffix) \ |
||
25 | ARR_DESC_DECLARE(matrix_##suffix##_a_inputs); \ |
||
26 | ARR_DESC_DECLARE(matrix_##suffix##_b_inputs); \ |
||
27 | ARR_DESC_DECLARE(matrix_##suffix##_invertible_inputs) |
||
28 | |||
29 | |||
30 | /*--------------------------------------------------------------------------------*/ |
||
31 | /* Declare Variables */ |
||
32 | /*--------------------------------------------------------------------------------*/ |
||
33 | |||
34 | /* Input/Output Buffers */ |
||
35 | extern arm_matrix_instance_f32 matrix_output_fut; |
||
36 | extern arm_matrix_instance_f32 matrix_output_ref; |
||
37 | extern arm_matrix_instance_f64 matrix_output_fut64; |
||
38 | extern arm_matrix_instance_f64 matrix_output_ref64; |
||
39 | extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_f32_fut[MATRIX_TEST_MAX_ELTS]; |
||
40 | extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_f32_ref[MATRIX_TEST_MAX_ELTS]; |
||
41 | extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_scratch[MATRIX_TEST_MAX_ELTS]; |
||
42 | |||
43 | /* Matrix Inputs */ |
||
44 | MATRIX_DECLARE_INPUTS(f64); |
||
45 | MATRIX_DECLARE_INPUTS(f32); |
||
46 | MATRIX_DECLARE_INPUTS(q31); |
||
47 | MATRIX_DECLARE_INPUTS(q15); |
||
48 | |||
49 | extern const float32_t matrix_f32_scale_values[MATRIX_MAX_COEFFS_LEN]; |
||
50 | extern const q31_t matrix_q31_scale_values[MATRIX_MAX_COEFFS_LEN]; |
||
51 | extern const q15_t matrix_q15_scale_values[MATRIX_MAX_COEFFS_LEN]; |
||
52 | extern const int32_t matrix_shift_values[MATRIX_MAX_SHIFTS_LEN]; |
||
53 | |||
54 | #endif /* _MATRIX_TEST_DATA_H_ */ |