Implement matrix power-matrix product again

This commit is contained in:
Chen-Pang He
2012-09-22 03:26:00 +08:00
parent 87afd99433
commit 446d14f6ad
6 changed files with 349 additions and 214 deletions

View File

@@ -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

View File

@@ -272,6 +272,7 @@ template<typename Derived> class MatrixFunctionReturnValue;
template<typename Derived> class MatrixSquareRootReturnValue;
template<typename Derived> class MatrixLogarithmReturnValue;
template<typename Derived> class MatrixPowerReturnValue;
template<typename Derived> class MatrixPowerProductBase;
namespace internal {
template <typename Scalar>