Add general Inverse<> expression with evaluator

This commit is contained in:
Gael Guennebaud
2014-02-20 14:18:24 +01:00
parent 2eee6eaf3c
commit ecd2c8f37b
5 changed files with 163 additions and 5 deletions

View File

@@ -92,7 +92,11 @@ template<typename Derived>
inline typename internal::traits<Derived>::Scalar MatrixBase<Derived>::determinant() const
{
eigen_assert(rows() == cols());
#ifdef EIGEN_TEST_EVALUATORS
typedef typename internal::nested_eval<Derived,Base::RowsAtCompileTime>::type Nested;
#else
typedef typename internal::nested<Derived,Base::RowsAtCompileTime>::type Nested;
#endif
return internal::determinant_impl<typename internal::remove_all<Nested>::type>::run(derived());
}