aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-10-14 18:36:17 +0800
committerGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-10-14 18:36:17 +0800
commit40fce01648433455fc62d6cd7869e68a3e85f8fd (patch)
treed3acd90dd17bf99a4ac98ec96c0b8c24a270fb75
parentc890cf548997c5f7dd8c856e01c13d0f646f6730 (diff)
Simplify traits<MatrixPowerProduct>: StorageKind must be Dense because MatrixPowerProduct is derived from MatrixBase.
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h
index b6fae9e6d..ba44487d0 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h
@@ -154,10 +154,8 @@ struct traits<MatrixPowerProduct<Derived,_Lhs,_Rhs> >
typedef typename remove_all<_Rhs>::type Rhs;
typedef typename remove_all<MatrixPowerProduct<Derived,_Lhs,_Rhs> >::type PlainObject;
typedef typename scalar_product_traits<typename Lhs::Scalar, typename Rhs::Scalar>::ReturnType Scalar;
- typedef typename promote_storage_type<typename traits<Lhs>::StorageKind,
- typename traits<Rhs>::StorageKind>::ret StorageKind;
- typedef typename promote_index_type<typename traits<Lhs>::Index,
- typename traits<Rhs>::Index>::type Index;
+ typedef Dense StorageKind;
+ typedef typename promote_index_type<typename Lhs::Index, typename Rhs::Index>::type Index;
enum {
RowsAtCompileTime = traits<Lhs>::RowsAtCompileTime,