From 40fce01648433455fc62d6cd7869e68a3e85f8fd Mon Sep 17 00:00:00 2001 From: Chen-Pang He Date: Sun, 14 Oct 2012 18:36:17 +0800 Subject: [PATCH] Simplify traits: StorageKind must be Dense because MatrixPowerProduct is derived from MatrixBase. --- unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h | 6 ++---- 1 file 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 > typedef typename remove_all<_Rhs>::type Rhs; typedef typename remove_all >::type PlainObject; typedef typename scalar_product_traits::ReturnType Scalar; - typedef typename promote_storage_type::StorageKind, - typename traits::StorageKind>::ret StorageKind; - typedef typename promote_index_type::Index, - typename traits::Index>::type Index; + typedef Dense StorageKind; + typedef typename promote_index_type::type Index; enum { RowsAtCompileTime = traits::RowsAtCompileTime,