aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-27 02:31:18 +0800
committerGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-27 02:31:18 +0800
commit73a0bfe261bef6d987829d391b2eb44a412d3884 (patch)
tree3cc0b3978a82ae4f67570776419adde6576720d7 /unsupported
parentaa5acdb352418d35e27c75148f66321e281af22b (diff)
Write doc on (matrix power) * (matrix expression)
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixPower.h9
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