I got the following result in which A^-1 * A is not equal to unit matrix. That’s the problem.
I have confirmed what A^-1 is by calculating with kind of software of computer algebra system (CAS) as follows.
According to CAS, the correct answer of A^-1 is [[0,-1],[1,1]] while it’s [[0,1],[-1,1]] in Blender. Please let me know what my mistake is in the code.
hi Hans,
seems to be a bug in invert() for 2x2 matrices. It works well with 3x3 matrices.
temp workaround: convert your 2x2matrix to 3x3matrix before invert()
Thanks, migius!
Thanks a lot for early reply, writing a bug report, and giving an alternative.
I think, I should have taken a look at the .c source code.
I’d like to ask one more thing…
Could I also ask whether it is a bug or even write a bug report? If it’s possible, where should I go?
…apparently, it is not in this forum.