diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-04-26 08:56:52 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-04-26 08:56:52 +0000 |
commit | 62bf0bbd5911bde451ec87b9a0337d2912b9206b (patch) | |
tree | b5a7ff26b9cab4310c1dbd4600766e955fb0ec57 /Eigen/src/LU/Determinant.h | |
parent | 173e582e3ce7a7822cb40dbfe8855e642a5fc9f2 (diff) |
fix a bug in determinant of 4x4 matrices and a small type issue in Inverse
Diffstat (limited to 'Eigen/src/LU/Determinant.h')
-rw-r--r-- | Eigen/src/LU/Determinant.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/LU/Determinant.h b/Eigen/src/LU/Determinant.h index 16c33ec31..d3998195c 100644 --- a/Eigen/src/LU/Determinant.h +++ b/Eigen/src/LU/Determinant.h @@ -57,10 +57,10 @@ const typename Derived::Scalar ei_bruteforce_det(const MatrixBase<Derived>& m) case 4: // trick by Martin Costabel to compute 4x4 det with only 30 muls return ei_bruteforce_det4_helper(m,0,1,2,3) - + ei_bruteforce_det4_helper(m,0,2,1,3) + - ei_bruteforce_det4_helper(m,0,2,1,3) + ei_bruteforce_det4_helper(m,0,3,1,2) + ei_bruteforce_det4_helper(m,1,2,0,3) - + ei_bruteforce_det4_helper(m,1,3,0,2) + - ei_bruteforce_det4_helper(m,1,3,0,2) + ei_bruteforce_det4_helper(m,2,3,0,1); default: assert(false); @@ -75,4 +75,4 @@ typename ei_traits<Derived>::Scalar MatrixBase<Derived>::determinant() const else assert(false); // unimplemented for now } -#endif // EIGEN_DETERMINANT_H
\ No newline at end of file +#endif // EIGEN_DETERMINANT_H |