Mult

Multiplies two real matrices.

Syntax

DSP style:

ippsq_status ippsq_mat_mult_f32 (const ippsq_matrix_instance_f32 *pSrc1, const ippsq_matrix_instance_f32 *pSrc2, ippsq_matrix_instance_f32 *pDst);

ippsq_status ippsq_mat_mult_q15 (const ippsq_matrix_instance_q15 *pSrc1, const ippsq_matrix_instance_q15 *pSrc2, ippsq_matrix_instance_q15 *pDst, q15_t *pState);

ippsq_status ippsq_mat_mult_fast_q15 (const ippsq_matrix_instance_q15 *pSrc1, const ippsq_matrix_instance_q15 *pSrc2, ippsq_matrix_instance_q15 *pDst, q15_t *pState);

ippsq_status ippsq_mat_mult_q31 (const ippsq_matrix_instance_q31 *pSrc1, const ippsq_matrix_instance_q31 *pSrc2, ippsq_matrix_instance_q31 *pDst);

ippsq_status ippsq_mat_mult_fast_q31 (const ippsq_matrix_instance_q31 *pSrc1, const ippsq_matrix_instance_q31 *pSrc2, ippsq_matrix_instance_q31 *pDst);

Include Files

dsp.h

Parameters

pSrc1, pSrc2

Pointers to the source matrices.

pDst

Pointer to destination matrix.

Description

This function multiplies pSrc1 by pSrc2 and stores the result in pDst. The number of rows in pSrc2 must be equal to the number of columns in pSrc1, and the pDst matrix must have the same number of rows as pSrc1 and the same number of columns as pSrc2.

Before using this function, initialize the pSrc1, pSrc2, 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.

Example

ex_dsqmatmult.c

See Also

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