source: S-port/trunk/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/matrix_tests/matrix_test_data.h@ 1

Last change on this file since 1 was 1, checked in by AlexLir, 2 years ago
File size: 2.2 KB
Line 
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 */
35extern arm_matrix_instance_f32 matrix_output_fut;
36extern arm_matrix_instance_f32 matrix_output_ref;
37extern arm_matrix_instance_f64 matrix_output_fut64;
38extern arm_matrix_instance_f64 matrix_output_ref64;
39extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_f32_fut[MATRIX_TEST_MAX_ELTS];
40extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_f32_ref[MATRIX_TEST_MAX_ELTS];
41extern MATRIX_TEST_BIGGEST_INPUT_TYPE matrix_output_scratch[MATRIX_TEST_MAX_ELTS];
42
43/* Matrix Inputs */
44MATRIX_DECLARE_INPUTS(f64);
45MATRIX_DECLARE_INPUTS(f32);
46MATRIX_DECLARE_INPUTS(q31);
47MATRIX_DECLARE_INPUTS(q15);
48
49extern const float32_t matrix_f32_scale_values[MATRIX_MAX_COEFFS_LEN];
50extern const q31_t matrix_q31_scale_values[MATRIX_MAX_COEFFS_LEN];
51extern const q15_t matrix_q15_scale_values[MATRIX_MAX_COEFFS_LEN];
52extern const int32_t matrix_shift_values[MATRIX_MAX_SHIFTS_LEN];
53
54#endif /* _MATRIX_TEST_DATA_H_ */
Note: See TracBrowser for help on using the repository browser.