This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMSIS Matrix inverse returns singular for nonsingular matrices

Hi

I have been testing the CMSIS DSP matrix inverse function and am observing unexpected results. In particular, the function arm_mat_inverse_f32 returns ARM_MATH_SINGULAR for matrices that are clearly not singular. For example, a 4x4 identity matrix (ones on the diagonal, zero everywhere else) returns a singularity error.

Is this expected behaviour? Is there a way to improve this?

Thanks!

Markus

Parents
  • Hi Markus,

    I have an updated version that should resolve the issue.  I checked for the identity case, as well as ran it through our normal test (which previously didn't check for diagonal matrices) and it passed.  It might get changed again before it hits the next CMSIS release, but hopefully this will work for you for now.

    Dan

Reply
  • Hi Markus,

    I have an updated version that should resolve the issue.  I checked for the identity case, as well as ran it through our normal test (which previously didn't check for diagonal matrices) and it passed.  It might get changed again before it hits the next CMSIS release, but hopefully this will work for you for now.

    Dan

Children
No data