Transpose

Transposes a matrix.

Syntax

DSP style:

ippsq_status ippsq_mat_trans_f32 (const ippsq_matrix_instance_f32 *pSrc, ippsq_matrix_instance_f32 *pDst);

ippsq_status ippsq_mat_trans_q15 (const ippsq_matrix_instance_q15 *pSrc, ippsq_matrix_instance_q15 *pDst);

ippsq_status ippsq_mat_trans_q31 (const ippsq_matrix_instance_q31 *pSrc, ippsq_matrix_instance_q31 *pDst);

Include Files

dsp.h

Parameters

pSrc

Pointer to the source matrix.

pDst

Pointer to the destination matrix.

Description

This function transposes the source matrix pSrc and stores the result in pDst. The number of rows in pDst must be equal to the number of columns in pSrc, and the number of columns in pDst must be equal to the number of rows in pSrc.

Before using this function, initialize the pSrc and pDst matrices using the Init function.

Return Values

IPPSQ_MATH_SUCCESS

Indicates no error.

IPPSQ_MATH_ARGUMENT_ERROR

Indicates an error when any of the specified pointers is NULL.

IPPSQ_MATH_SIZE_MISMATCH

Indicates an error when matrix sizes are not compatible with the operation.

See Also

For more complete information about compiler optimizations, see our Optimization Notice.