Matrix Initialization
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f16 (riscv_matrix_instance_f16 *S, uint16_t nRows, uint16_t nColumns, float16_t *pData)
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f32 (riscv_matrix_instance_f32 *S, uint16_t nRows, uint16_t nColumns, float32_t *pData)
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f64 (riscv_matrix_instance_f64 *S, uint16_t nRows, uint16_t nColumns, float64_t *pData)
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_q15 (riscv_matrix_instance_q15 *S, uint16_t nRows, uint16_t nColumns, q15_t *pData)
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_q31 (riscv_matrix_instance_q31 *S, uint16_t nRows, uint16_t nColumns, q31_t *pData)
-
void riscv_mat_init_q7(riscv_matrix_instance_q7 *S, uint16_t nRows, uint16_t nColumns, q7_t *pData)
- group MatrixInit
Initializes the underlying matrix data structure. The functions set the
numRows
,numCols
, andpData
fields of the matrix data structure.Functions
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f16 (riscv_matrix_instance_f16 *S, uint16_t nRows, uint16_t nColumns, float16_t *pData)
Floating-point matrix initialization.
- Parameters
S – [inout] points to an instance of the floating-point matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f32 (riscv_matrix_instance_f32 *S, uint16_t nRows, uint16_t nColumns, float32_t *pData)
Floating-point matrix initialization.
- Parameters
S – [inout] points to an instance of the floating-point matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_f64 (riscv_matrix_instance_f64 *S, uint16_t nRows, uint16_t nColumns, float64_t *pData)
Floating-point matrix initialization.
- Parameters
S – [inout] points to an instance of the floating-point matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_q15 (riscv_matrix_instance_q15 *S, uint16_t nRows, uint16_t nColumns, q15_t *pData)
Q15 matrix initialization.
- Parameters
S – [inout] points to an instance of the floating-point matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
- RISCV_DSP_ATTRIBUTE void riscv_mat_init_q31 (riscv_matrix_instance_q31 *S, uint16_t nRows, uint16_t nColumns, q31_t *pData)
Q31 matrix initialization.
- Parameters
S – [inout] points to an instance of the Q31 matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
-
void riscv_mat_init_q7(riscv_matrix_instance_q7 *S, uint16_t nRows, uint16_t nColumns, q7_t *pData)
Q7 matrix initialization.
- Parameters
S – [inout] points to an instance of the floating-point matrix structure
nRows – [in] number of rows in the matrix
nColumns – [in] number of columns in the matrix
pData – [in] points to the matrix data array
- Returns
none