Skip to content
Snippets Groups Projects
Commit 7da67046 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fixed TinyMatrix<2,T> inverse

computed the transposed of the inverse...
parent 6dc0e768
No related branches found
No related tags found
No related merge requests found
......@@ -431,8 +431,8 @@ TinyMatrix<2,T> inverse(const TinyMatrix<2,T>& A)
const T determinent = det(A);
const T inv_determinent = 1./determinent;
TinyMatrix<2,T> A_cofactors_T(A(1,1), -A(1,0),
-A(0,1), A(0,0));
TinyMatrix<2,T> A_cofactors_T(A(1,1), -A(0,1),
-A(1,0), A(0,0));
return std::move(A_cofactors_T *= inv_determinent);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment