NMSIS-DSP
Version 1.3.1
NMSIS DSP Software Library
|
Subtract two matrices. More...
Subtract two matrices.
\[ \begin{pmatrix} a_{1,1} & a_{1,2} & a_{1,3} \\ a_{2,1} & a_{2,2} & a_{2,3} \\ a_{3,1} & a_{3,2} & a_{3,3} \\ \end{pmatrix} - \begin{pmatrix} b_{1,1} & b_{1,2} & b_{1,3} \\ b_{2,1} & b_{2,2} & b_{2,3} \\ b_{3,1} & b_{3,2} & b_{3,3} \\ \end{pmatrix} = \begin{pmatrix} a_{1,1}-b_{1,1} & a_{1,2}-b_{1,2} & a_{1,3}-b_{1,3} \\ a_{2,1}-b_{2,1} & a_{2,2}-b_{2,2} & a_{2,3}-b_{2,3} \\ a_{3,1}-b_{3,1} & a_{3,2}-b_{3,2} & a_{3,3}-b_{3,3} \\ \end{pmatrix} \]
The functions check to make sure that pSrcA
, pSrcB
, and pDst
have the same number of rows and columns.
RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_sub_f16 | ( | const riscv_matrix_instance_f16 * | pSrcA, |
const riscv_matrix_instance_f16 * | pSrcB, | ||
riscv_matrix_instance_f16 * | pDst | ||
) |
Floating-point matrix subtraction.
[in] | pSrcA | points to the first input matrix structure |
[in] | pSrcB | points to the second input matrix structure |
[out] | pDst | points to output matrix structure |
RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_sub_f32 | ( | const riscv_matrix_instance_f32 * | pSrcA, |
const riscv_matrix_instance_f32 * | pSrcB, | ||
riscv_matrix_instance_f32 * | pDst | ||
) |
Floating-point matrix subtraction.
[in] | pSrcA | points to the first input matrix structure |
[in] | pSrcB | points to the second input matrix structure |
[out] | pDst | points to output matrix structure |
RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_sub_f64 | ( | const riscv_matrix_instance_f64 * | pSrcA, |
const riscv_matrix_instance_f64 * | pSrcB, | ||
riscv_matrix_instance_f64 * | pDst | ||
) |
Floating-point matrix subtraction.
[in] | pSrcA | points to the first input matrix structure |
[in] | pSrcB | points to the second input matrix structure |
[out] | pDst | points to output matrix structure |
RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_sub_q15 | ( | const riscv_matrix_instance_q15 * | pSrcA, |
const riscv_matrix_instance_q15 * | pSrcB, | ||
riscv_matrix_instance_q15 * | pDst | ||
) |
Q15 matrix subtraction.
[in] | pSrcA | points to the first input matrix structure |
[in] | pSrcB | points to the second input matrix structure |
[out] | pDst | points to output matrix structure |
RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_sub_q31 | ( | const riscv_matrix_instance_q31 * | pSrcA, |
const riscv_matrix_instance_q31 * | pSrcB, | ||
riscv_matrix_instance_q31 * | pDst | ||
) |
Q31 matrix subtraction.
[in] | pSrcA | points to the first input matrix structure |
[in] | pSrcB | points to the second input matrix structure |
[out] | pDst | points to output matrix structure |