diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-23 00:20:19 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-23 00:20:19 +0800 |
commit | 963794b04a68671d08edaddf1185010c5f02a096 (patch) | |
tree | b116decb014981b7dc84bd2a5f2a1a483510a226 /Eigen/src/Core/NoAlias.h | |
parent | 7e64f78f65db6681e6f71b80fa84c57bbce8200f (diff) |
Eliminate unnecessary evaluations
Diffstat (limited to 'Eigen/src/Core/NoAlias.h')
-rw-r--r-- | Eigen/src/Core/NoAlias.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h index fcf2c479c..ac1396f68 100644 --- a/Eigen/src/Core/NoAlias.h +++ b/Eigen/src/Core/NoAlias.h @@ -81,8 +81,8 @@ class NoAlias EIGEN_STRONG_INLINE ExpressionType& operator-=(const CoeffBasedProduct<Lhs,Rhs,NestingFlags>& other) { return m_expression.derived() -= CoeffBasedProduct<Lhs,Rhs,NestByRefBit>(other.lhs(), other.rhs()); } - template<typename Derived> - EIGEN_STRONG_INLINE ExpressionType& operator=(const MatrixPowerProductBase<Derived>& other) + template<typename Derived, typename Lhs, typename Rhs> + EIGEN_STRONG_INLINE ExpressionType& operator=(const MatrixPowerProductBase<Derived,Lhs,Rhs>& other) { other.derived().evalTo(m_expression); return m_expression; } #endif |