diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-27 02:31:18 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-27 02:31:18 +0800 |
commit | 73a0bfe261bef6d987829d391b2eb44a412d3884 (patch) | |
tree | 3cc0b3978a82ae4f67570776419adde6576720d7 /unsupported | |
parent | aa5acdb352418d35e27c75148f66321e281af22b (diff) |
Write doc on (matrix power) * (matrix expression)
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixPower.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h b/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h index 996c24240..6e8b03cea 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h @@ -316,6 +316,13 @@ class MatrixPowerReturnValue : public ReturnByValue<MatrixPowerReturnValue<Deriv inline void evalTo(ResultType& res) const { m_pow.compute(res, m_p); } + /** + * \brief Return the expression \f$ A^p b \f$. + * + * \p A and \p p are specified in the constructor. + * + * \param[in] b the matrix (expression) to be applied. + */ template<typename OtherDerived> const MatrixPowerMatrixProduct<PlainObject,OtherDerived> operator*(const MatrixBase<OtherDerived>& b) const { return MatrixPowerMatrixProduct<PlainObject,OtherDerived>(m_pow, b.derived(), m_p); } @@ -343,7 +350,7 @@ template<typename Lhs, typename Rhs> struct traits<MatrixPowerMatrixProduct<Lhs,Rhs> > : traits<MatrixPowerProductBase<MatrixPowerMatrixProduct<Lhs,Rhs>,Lhs,Rhs> > { }; -} +} // namespace internal template<typename Derived> const MatrixPowerReturnValue<Derived> MatrixBase<Derived>::pow(RealScalar p) const |