From 9bbe396939c925854cdce8aabcff1ebe0a8f23bc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 7 Aug 2008 21:50:29 +0000 Subject: forgot to remove that old code --- Eigen/src/LU/Determinant.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'Eigen') 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 -const typename Derived::Scalar ei_bruteforce_det(const MatrixBase& 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