diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-10-14 03:02:16 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-10-14 03:02:16 +0800 |
commit | c890cf548997c5f7dd8c856e01c13d0f646f6730 (patch) | |
tree | 6ba7136efa5118d465643bd20793d37a9daadec2 | |
parent | daa65c5bcedc7892a5bf93000384448204c9a683 (diff) |
Use the nested type instead of const reference
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h index edd14931e..b6fae9e6d 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h @@ -97,7 +97,7 @@ class MatrixPowerBase protected: typedef Array<RealScalar,RowsAtCompileTime,1,ColMajor,MaxRowsAtCompileTime> RealArray; - const MatrixType& m_A; + typename MatrixType::Nested m_A; MatrixType m_tmp1, m_tmp2; RealScalar m_conditionNumber; }; @@ -124,7 +124,7 @@ class MatrixPowerProduct : public MatrixBase<MatrixPowerProduct<Derived,Lhs,Rhs> private: Derived& m_pow; - const Rhs& m_b; + typename Rhs::Nested m_b; const RealScalar m_p; }; |