Complex Matrix Transpose
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_f16 (const riscv_matrix_instance_f16 *pSrc, riscv_matrix_instance_f16 *pDst)
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_f32 (const riscv_matrix_instance_f32 *pSrc, riscv_matrix_instance_f32 *pDst)
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_q15 (const riscv_matrix_instance_q15 *pSrc, riscv_matrix_instance_q15 *pDst)
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_q31 (const riscv_matrix_instance_q31 *pSrc, riscv_matrix_instance_q31 *pDst)
- group MatrixComplexTrans
Tranposes a complex matrix.
Transposing an
M x N
matrix flips it around the center diagonal and results in anN x M
matrix.\[\begin{split} \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}^T = \begin{pmatrix} a_{1,1} & a_{2,1} & a_{3,1} \\ a_{1,2} & a_{2,2} & a_{3,2} \\ a_{1,3} & a_{2,3} & a_{3,3} \\ \end{pmatrix} \end{split}\]- Transpose of a 3 x 3 matrix
Functions
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_f16 (const riscv_matrix_instance_f16 *pSrc, riscv_matrix_instance_f16 *pDst)
Floating-point matrix transpose.
Floating-point complex matrix transpose.
- Parameters
pSrc – [in] points to input matrix
pDst – [out] points to output matrix
- Returns
execution status
RISCV_MATH_SUCCESS : Operation successful
RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_f32 (const riscv_matrix_instance_f32 *pSrc, riscv_matrix_instance_f32 *pDst)
Floating-point matrix transpose.
Floating-point complex matrix transpose.
- Parameters
pSrc – [in] points to input matrix
pDst – [out] points to output matrix
- Returns
execution status
RISCV_MATH_SUCCESS : Operation successful
RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_q15 (const riscv_matrix_instance_q15 *pSrc, riscv_matrix_instance_q15 *pDst)
Q15 complex matrix transpose.
- Parameters
pSrc – [in] points to input matrix
pDst – [out] points to output matrix
- Returns
execution status
RISCV_MATH_SUCCESS : Operation successful
RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
- RISCV_DSP_ATTRIBUTE riscv_status riscv_mat_cmplx_trans_q31 (const riscv_matrix_instance_q31 *pSrc, riscv_matrix_instance_q31 *pDst)
Q31 complex matrix transpose.
- Parameters
pSrc – [in] points to input matrix
pDst – [out] points to output matrix
- Returns
execution status
RISCV_MATH_SUCCESS : Operation successful
RISCV_MATH_SIZE_MISMATCH : Matrix size check failed