diff options
Diffstat (limited to 'Eigen/src/Core/Dot.h')
-rw-r--r-- | Eigen/src/Core/Dot.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index 718de5d1a..38f6fbf44 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -141,8 +141,13 @@ template<typename Derived> inline const typename MatrixBase<Derived>::PlainObject MatrixBase<Derived>::normalized() const { - typedef typename internal::nested<Derived>::type Nested; +#ifndef EIGEN_TEST_EVALUATORS + typedef typename internal::nested<Derived,2>::type Nested; typedef typename internal::remove_reference<Nested>::type _Nested; +#else + typedef typename internal::nested_eval<Derived,2>::type _Nested; +// typedef typename internal::remove_reference<Nested>::type _Nested; +#endif // EIGEN_TEST_EVALUATORS _Nested n(derived()); return n / n.norm(); } |