You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should hold that $\textrm{adj}(M)\cdot M = \det(M)\cdot I$.
Current Behavior
I hope I'm not completely misunderstanding something here, but the result of using the adjugate procedure from either core:math/linalg, core:math/linalg/glsl, or core:math/linalg/hlsl returns a matrix that seems to be the transpose of the actual adjugate and the above equality doesn't hold. This is the case for 2x2, 3x3 and 4x4 matrices.
Context
Expected Behavior
It should hold that$\textrm{adj}(M)\cdot M = \det(M)\cdot I$ .
Current Behavior
I hope I'm not completely misunderstanding something here, but the result of using the
adjugate
procedure from eithercore:math/linalg
,core:math/linalg/glsl
, orcore:math/linalg/hlsl
returns a matrix that seems to be the transpose of the actual adjugate and the above equality doesn't hold. This is the case for 2x2, 3x3 and 4x4 matrices.Failure Information (for bugs)
Steps to Reproduce
Minimal test program that prints the determinants and$\textrm{adj}(M)\cdot M$ for a 2x2, 3x3 and 4x4 matrix. The 3x3 example is from https://en.wikipedia.org/wiki/Adjugate_matrix
Output:
The text was updated successfully, but these errors were encountered: