CMSIS-DSP
Version 1.4.7
CMSIS DSP Software Library
|
Functions | |
arm_status | arm_mat_inverse_f32 (const arm_matrix_instance_f32 *pSrc, arm_matrix_instance_f32 *pDst) |
Floating-point matrix inverse. | |
arm_status | arm_mat_inverse_f64 (const arm_matrix_instance_f64 *pSrc, arm_matrix_instance_f64 *pDst) |
Floating-point matrix inverse. | |
Computes the inverse of a matrix.
The inverse is defined only if the input matrix is square and non-singular (the determinant is non-zero). The function checks that the input and output matrices are square and of the same size.
Matrix inversion is numerically sensitive and the CMSIS DSP library only supports matrix inversion of floating-point matrices.
ARM_MATH_SINGULAR
. arm_status arm_mat_inverse_f32 | ( | const arm_matrix_instance_f32 * | pSrc, |
arm_matrix_instance_f32 * | pDst | ||
) |
[in] | *pSrc | points to input matrix structure |
[out] | *pDst | points to output matrix structure |
ARM_MATH_SIZE_MISMATCH
if the input matrix is not square or if the size of the output matrix does not match the size of the input matrix. If the input matrix is found to be singular (non-invertible), then the function returns ARM_MATH_SINGULAR
. Otherwise, the function returns ARM_MATH_SUCCESS
. References ARM_MATH_SINGULAR, ARM_MATH_SIZE_MISMATCH, ARM_MATH_SUCCESS, arm_matrix_instance_f32::numCols, arm_matrix_instance_f32::numRows, arm_matrix_instance_f32::pData, and status.
Referenced by main().
arm_status arm_mat_inverse_f64 | ( | const arm_matrix_instance_f64 * | pSrc, |
arm_matrix_instance_f64 * | pDst | ||
) |
[in] | *pSrc | points to input matrix structure |
[out] | *pDst | points to output matrix structure |
ARM_MATH_SIZE_MISMATCH
if the input matrix is not square or if the size of the output matrix does not match the size of the input matrix. If the input matrix is found to be singular (non-invertible), then the function returns ARM_MATH_SINGULAR
. Otherwise, the function returns ARM_MATH_SUCCESS
. References ARM_MATH_SINGULAR, ARM_MATH_SIZE_MISMATCH, ARM_MATH_SUCCESS, arm_matrix_instance_f64::numCols, arm_matrix_instance_f64::numRows, arm_matrix_instance_f64::pData, and status.