diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-08-07 21:50:29 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-08-07 21:50:29 +0000 |
commit | 9bbe396939c925854cdce8aabcff1ebe0a8f23bc (patch) | |
tree | cf980e6933d54da2c5c5048232e85f5424d7da45 /Eigen/src/LU/Determinant.h | |
parent | 5f350448e163c42b400c1191d790e3d2fa12d235 (diff) |
forgot to remove that old code
Diffstat (limited to 'Eigen/src/LU/Determinant.h')
-rw-r--r-- | Eigen/src/LU/Determinant.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Eigen/src/LU/Determinant.h b/Eigen/src/LU/Determinant.h index f66836283..c1746e1ab 100644 --- a/Eigen/src/LU/Determinant.h +++ b/Eigen/src/LU/Determinant.h @@ -41,32 +41,6 @@ const typename Derived::Scalar ei_bruteforce_det4_helper * (matrix.coeff(m,2) * matrix.coeff(n,3) - matrix.coeff(n,2) * matrix.coeff(m,3)); } -template<typename Derived> -const typename Derived::Scalar ei_bruteforce_det(const MatrixBase<Derived>& m) -{ - switch(Derived::RowsAtCompileTime) - { - case 1: - return m.coeff(0,0); - case 2: - return m.coeff(0,0) * m.coeff(1,1) - m.coeff(1,0) * m.coeff(0,1); - case 3: - return ei_bruteforce_det3_helper(m,0,1,2) - - ei_bruteforce_det3_helper(m,1,0,2) - + ei_bruteforce_det3_helper(m,2,0,1); - 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,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,2,3,0,1); - default: - ei_internal_assert(false); - } -} - const int TriangularDeterminant = 0; template<typename Derived, |