aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/NoAlias.h
diff options
context:
space:
mode:
authorGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-22 03:26:00 +0800
committerGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-22 03:26:00 +0800
commit446d14f6ada663b1e5d0a8afc37c1e9b054b1b29 (patch)
tree437fed23b71972b6eba4ee43b10e89ae62a361d8 /Eigen/src/Core/NoAlias.h
parent87afd99433b6a8a6c5e4fa4bb788ccc020ff7090 (diff)
Implement matrix power-matrix product again
Diffstat (limited to 'Eigen/src/Core/NoAlias.h')
-rw-r--r--Eigen/src/Core/NoAlias.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h
index 0112c865b..fcf2c479c 100644
--- a/Eigen/src/Core/NoAlias.h
+++ b/Eigen/src/Core/NoAlias.h
@@ -80,6 +80,10 @@ class NoAlias
template<typename Lhs, typename Rhs, int NestingFlags>
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)
+ { other.derived().evalTo(m_expression); return m_expression; }
#endif
ExpressionType& expression() const