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-DSP: Matrix Inverse problem

Hello,

While debugging a DSP algorithm, I realized the problem is duo to the CMSIS matrix inverse function: arm_mat_inverse_f32. It's really strange and is driving me crazy. arm_mat_inverse_f32 returns the right result for some Matrices but wrong result for some other! I assure you the matrices are not singular or anything like this, the algorithm works just fine with the same input data on MATLAB. I have no idea what the problem could be, any suggestions?

Regards

Parents
  • Without having time to try to run your code, I get interested about one thing.

    Your declaration of an array is as a one-dimensional array of SIZE*SIZE entries. Are you sure that your sequence of numbers correlates correctly with the row and column order of the matrice, so that when you test to invert the matrix yourself you are working with the same matrix values as you send to arm_mat_inverse_f32()?

Reply
  • Without having time to try to run your code, I get interested about one thing.

    Your declaration of an array is as a one-dimensional array of SIZE*SIZE entries. Are you sure that your sequence of numbers correlates correctly with the row and column order of the matrice, so that when you test to invert the matrix yourself you are working with the same matrix values as you send to arm_mat_inverse_f32()?

Children