Tranposes a matrix.
More...
Tranposes a matrix.
Transposing an M x N
matrix flips it around the center diagonal and results in an N x M
matrix.
- Transpose of a 3 x 3 matrix
\[ \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} \]
Transposing an M x N
matrix flips it around the center diagonal and results in an N x M
matrix.
Transpose of a 3 x 3 matrix
◆ riscv_mat_trans_f16()
Floating-point matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
◆ riscv_mat_trans_f32()
Floating-point matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
◆ riscv_mat_trans_f64()
Floating-point matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
◆ riscv_mat_trans_q15()
Q15 matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
◆ riscv_mat_trans_q31()
Q31 matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed
◆ riscv_mat_trans_q7()
Q7 matrix transpose.
- Parameters
-
[in] | pSrc | points to input matrix |
[out] | pDst | points to output matrix |
- Returns
- execution status
- RISCV_MATH_SUCCESS : Operation successful
- RISCV_MATH_SIZE_MISMATCH : Matrix size check failed