diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-03-03 15:24:58 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-03-03 15:24:58 +0100 |
commit | aa6570c3a39fd0d8094b8aa32a2710b95eec6894 (patch) | |
tree | 1644beedebc385822a6aa5a6886a7e771581261e /Eigen/src/LU | |
parent | b0ffd9bf0414fa13aacb3edc0d467592c4a06848 (diff) |
Added a missing inline hints.
Removed a useless Nested temporary.
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r-- | Eigen/src/LU/Determinant.h | 5 | ||||
-rw-r--r-- | 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<typename Derived> struct ei_determinant_impl<Derived, 2> template<typename Derived> struct ei_determinant_impl<Derived, 3> { - static typename ei_traits<Derived>::Scalar run(const Derived& m) + static inline typename ei_traits<Derived>::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<Derived>::Scalar MatrixBase<Derived>::determinant() co { assert(rows() == cols()); typedef typename ei_nested<Derived,Base::RowsAtCompileTime>::type Nested; - Nested nested(derived()); - return ei_determinant_impl<typename ei_cleantype<Nested>::type>::run(nested); + return ei_determinant_impl<typename ei_cleantype<Nested>::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<MatrixType, ResultType, 2> ****************************/ template<typename MatrixType, typename ResultType> -void ei_compute_inverse_size3_helper( +inline void ei_compute_inverse_size3_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, const Matrix<typename ResultType::Scalar,3,1>& cofactors_col0, |