Matrix Transpose

riscv_status riscv_mat_trans_f32(const riscv_matrix_instance_f32 *pSrc, riscv_matrix_instance_f32 *pDst)
riscv_status riscv_mat_trans_q15(const riscv_matrix_instance_q15 *pSrc, riscv_matrix_instance_q15 *pDst)
riscv_status riscv_mat_trans_q31(const riscv_matrix_instance_q31 *pSrc, riscv_matrix_instance_q31 *pDst)
group MatrixTrans

Tranposes a matrix.

Transposing an M x N matrix flips it around the center diagonal and results in an N x M matrix. ../../../_images/MatrixTranspose.png

Functions

riscv_status riscv_mat_trans_f32(const riscv_matrix_instance_f32 *pSrc, riscv_matrix_instance_f32 *pDst)

Floating-point matrix transpose.

Return

execution status

  • RISCV_MATH_SUCCESS : Operation successful

  • RISCV_MATH_SIZE_MISMATCH : Matrix size check failed

Parameters
  • [in] pSrc: points to input matrix

  • [out] pDst: points to output matrix

riscv_status riscv_mat_trans_q15(const riscv_matrix_instance_q15 *pSrc, riscv_matrix_instance_q15 *pDst)

Q15 matrix transpose.

Return

execution status

  • RISCV_MATH_SUCCESS : Operation successful

  • RISCV_MATH_SIZE_MISMATCH : Matrix size check failed

Parameters
  • [in] pSrc: points to input matrix

  • [out] pDst: points to output matrix

riscv_status riscv_mat_trans_q31(const riscv_matrix_instance_q31 *pSrc, riscv_matrix_instance_q31 *pDst)

Q31 matrix transpose.

Return

execution status

  • RISCV_MATH_SUCCESS : Operation successful

  • RISCV_MATH_SIZE_MISMATCH : Matrix size check failed

Parameters
  • [in] pSrc: points to input matrix

  • [out] pDst: points to output matrix