mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 10:44:05 +08:00
Use the nested type instead of const reference
This commit is contained in:
parent
daa65c5bce
commit
c890cf5489
@ -97,7 +97,7 @@ class MatrixPowerBase
|
|||||||
protected:
|
protected:
|
||||||
typedef Array<RealScalar,RowsAtCompileTime,1,ColMajor,MaxRowsAtCompileTime> RealArray;
|
typedef Array<RealScalar,RowsAtCompileTime,1,ColMajor,MaxRowsAtCompileTime> RealArray;
|
||||||
|
|
||||||
const MatrixType& m_A;
|
typename MatrixType::Nested m_A;
|
||||||
MatrixType m_tmp1, m_tmp2;
|
MatrixType m_tmp1, m_tmp2;
|
||||||
RealScalar m_conditionNumber;
|
RealScalar m_conditionNumber;
|
||||||
};
|
};
|
||||||
@ -124,7 +124,7 @@ class MatrixPowerProduct : public MatrixBase<MatrixPowerProduct<Derived,Lhs,Rhs>
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Derived& m_pow;
|
Derived& m_pow;
|
||||||
const Rhs& m_b;
|
typename Rhs::Nested m_b;
|
||||||
const RealScalar m_p;
|
const RealScalar m_p;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user