matrix power: MatrixBase::pow(RealScalar) and MatrixBase::pow(T) where T is integral type

This commit is contained in:
jdh8
2012-08-15 00:34:20 +08:00
parent c5800a2452
commit 4be172d84f
4 changed files with 957 additions and 1 deletions

View File

@@ -454,6 +454,8 @@ template<typename Derived> class MatrixBase
const MatrixFunctionReturnValue<Derived> sin() const;
const MatrixSquareRootReturnValue<Derived> sqrt() const;
const MatrixLogarithmReturnValue<Derived> log() const;
template <typename ExponentType>
const MatrixPowerReturnValue<Derived, ExponentType> pow(const ExponentType& p) const;
#ifdef EIGEN2_SUPPORT
template<typename ProductDerived, typename Lhs, typename Rhs>

View File

@@ -271,6 +271,7 @@ template<typename Derived> struct MatrixExponentialReturnValue;
template<typename Derived> class MatrixFunctionReturnValue;
template<typename Derived> class MatrixSquareRootReturnValue;
template<typename Derived> class MatrixLogarithmReturnValue;
template<typename Derived, typename ExponentType> class MatrixPowerReturnValue;
namespace internal {
template <typename Scalar>