From aa6570c3a39fd0d8094b8aa32a2710b95eec6894 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Wed, 3 Mar 2010 15:24:58 +0100 Subject: [PATCH] Added a missing inline hints. Removed a useless Nested temporary. --- Eigen/src/LU/Determinant.h | 5 ++--- Eigen/src/LU/Inverse.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Eigen/src/LU/Determinant.h b/Eigen/src/LU/Determinant.h index fb6577f08..d0b70a31c 100644 --- a/Eigen/src/LU/Determinant.h +++ b/Eigen/src/LU/Determinant.h @@ -69,7 +69,7 @@ template struct ei_determinant_impl template struct ei_determinant_impl { - static typename ei_traits::Scalar run(const Derived& m) + static inline typename ei_traits::Scalar run(const Derived& m) { return ei_bruteforce_det3_helper(m,0,1,2) - ei_bruteforce_det3_helper(m,1,0,2) @@ -100,8 +100,7 @@ inline typename ei_traits::Scalar MatrixBase::determinant() co { assert(rows() == cols()); typedef typename ei_nested::type Nested; - Nested nested(derived()); - return ei_determinant_impl::type>::run(nested); + return ei_determinant_impl::type>::run(derived()); } #endif // EIGEN_DETERMINANT_H diff --git a/Eigen/src/LU/Inverse.h b/Eigen/src/LU/Inverse.h index e20da70d6..116a614e1 100644 --- a/Eigen/src/LU/Inverse.h +++ b/Eigen/src/LU/Inverse.h @@ -123,7 +123,7 @@ struct ei_compute_inverse_and_det_with_check ****************************/ template -void ei_compute_inverse_size3_helper( +inline void ei_compute_inverse_size3_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, const Matrix& cofactors_col0,