Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
Matrix Addition
[Matrix Functions]
Adds two matrices. More...
Functions | |
arm_status | arm_mat_add_f32 (const arm_matrix_instance_f32 *pSrcA, const arm_matrix_instance_f32 *pSrcB, arm_matrix_instance_f32 *pDst) |
Floating-point matrix addition. | |
arm_status | arm_mat_add_q15 (const arm_matrix_instance_q15 *pSrcA, const arm_matrix_instance_q15 *pSrcB, arm_matrix_instance_q15 *pDst) |
Q15 matrix addition. | |
arm_status | arm_mat_add_q31 (const arm_matrix_instance_q31 *pSrcA, const arm_matrix_instance_q31 *pSrcB, arm_matrix_instance_q31 *pDst) |
Q31 matrix addition. |
Detailed Description
Adds two matrices.

Addition of two 3 x 3 matrices
The functions check to make sure that pSrcA
, pSrcB
, and pDst
have the same number of rows and columns.
Function Documentation
arm_status arm_mat_add_f32 | ( | const arm_matrix_instance_f32 * | pSrcA, |
const arm_matrix_instance_f32 * | pSrcB, | ||
arm_matrix_instance_f32 * | pDst | ||
) |
Floating-point matrix addition.
- Parameters:
-
[in] *pSrcA points to the first input matrix structure [in] *pSrcB points to the second input matrix structure [out] *pDst points to output matrix structure
- Returns:
- The function returns either
ARM_MATH_SIZE_MISMATCH
orARM_MATH_SUCCESS
based on the outcome of size checking.
Definition at line 73 of file arm_mat_add_f32.c.
arm_status arm_mat_add_q15 | ( | const arm_matrix_instance_q15 * | pSrcA, |
const arm_matrix_instance_q15 * | pSrcB, | ||
arm_matrix_instance_q15 * | pDst | ||
) |
Q15 matrix addition.
- Parameters:
-
[in] *pSrcA points to the first input matrix structure [in] *pSrcB points to the second input matrix structure [out] *pDst points to output matrix structure
- Returns:
- The function returns either
ARM_MATH_SIZE_MISMATCH
orARM_MATH_SUCCESS
based on the outcome of size checking.
Scaling and Overflow Behavior:
- The function uses saturating arithmetic. Results outside of the allowable Q15 range [0x8000 0x7FFF] will be saturated.
Definition at line 66 of file arm_mat_add_q15.c.
arm_status arm_mat_add_q31 | ( | const arm_matrix_instance_q31 * | pSrcA, |
const arm_matrix_instance_q31 * | pSrcB, | ||
arm_matrix_instance_q31 * | pDst | ||
) |
Q31 matrix addition.
- Parameters:
-
[in] *pSrcA points to the first input matrix structure [in] *pSrcB points to the second input matrix structure [out] *pDst points to output matrix structure
- Returns:
- The function returns either
ARM_MATH_SIZE_MISMATCH
orARM_MATH_SUCCESS
based on the outcome of size checking.
Scaling and Overflow Behavior:
- The function uses saturating arithmetic. Results outside of the allowable Q31 range [0x80000000 0x7FFFFFFF] will be saturated.
Definition at line 66 of file arm_mat_add_q31.c.
Generated on Tue Jul 12 2022 11:03:12 by
