Add

Adds two matrices.

Syntax

DSP style:

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

ippsq_status ippsq_mat_add_q15 (const ippsq_matrix_instance_q15 *pSrc1, const ippsq_matrix_instance_q15 *pSrc2, ippsq_matrix_instance_q15 *pDst);

ippsq_status ippsq_mat_add_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 adds the pSrc1 and pSrc2 matrices. The pSrc1, pSrc2, and pDst matrices must have an equal number of rows and columns.

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_dsqmatadd.c

See Also

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