diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-08-01 14:48:22 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-08-01 14:48:22 +0200 |
commit | 2a3c3c49a19572b544b22820065c673cfac9bc04 (patch) | |
tree | a1fd384c35bfe0414d5f92517e156b2dfd821e75 /Eigen/src/Core/Dot.h | |
parent | fc13b37c552c6661c81f135cf94edc3de09d2000 (diff) |
Fix numerous nested versus nested_eval shortcomings
Diffstat (limited to 'Eigen/src/Core/Dot.h')
-rw-r--r-- | Eigen/src/Core/Dot.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index d18b0099a..d6441c6a5 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -211,8 +211,13 @@ template<typename OtherDerived> bool MatrixBase<Derived>::isOrthogonal (const MatrixBase<OtherDerived>& other, const RealScalar& prec) const { +#ifndef EIGEN_TEST_EVALUATORS typename internal::nested<Derived,2>::type nested(derived()); typename internal::nested<OtherDerived,2>::type otherNested(other.derived()); +#else + typename internal::nested_eval<Derived,2>::type nested(derived()); + typename internal::nested_eval<OtherDerived,2>::type otherNested(other.derived()); +#endif return numext::abs2(nested.dot(otherNested)) <= prec * prec * nested.squaredNorm() * otherNested.squaredNorm(); } |