mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
for consistency: PlainMatrixType ---> DenseMatrixType
This commit is contained in:
parent
984c000778
commit
ac00902f84
@ -70,7 +70,7 @@ class BandMatrix : public AnyMatrixBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs
|
|||||||
MaxColsAtCompileTime = ei_traits<BandMatrix>::MaxColsAtCompileTime
|
MaxColsAtCompileTime = ei_traits<BandMatrix>::MaxColsAtCompileTime
|
||||||
};
|
};
|
||||||
typedef typename ei_traits<BandMatrix>::Scalar Scalar;
|
typedef typename ei_traits<BandMatrix>::Scalar Scalar;
|
||||||
typedef Matrix<Scalar,RowsAtCompileTime,ColsAtCompileTime> PlainMatrixType;
|
typedef Matrix<Scalar,RowsAtCompileTime,ColsAtCompileTime> DenseMatrixType;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
enum {
|
enum {
|
||||||
@ -171,9 +171,9 @@ class BandMatrix : public AnyMatrixBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs
|
|||||||
return Block<DataType,1,Dynamic>(m_data, supers()-i, std::max(0,i), 1, diagonalLength(i));
|
return Block<DataType,1,Dynamic>(m_data, supers()-i, std::max(0,i), 1, diagonalLength(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
PlainMatrixType toDenseMatrix() const
|
DenseMatrixType toDenseMatrix() const
|
||||||
{
|
{
|
||||||
PlainMatrixType res(rows(),cols());
|
DenseMatrixType res(rows(),cols());
|
||||||
res.setZero();
|
res.setZero();
|
||||||
res.diagonal() = diagonal();
|
res.diagonal() = diagonal();
|
||||||
for (int i=1; i<=supers();++i)
|
for (int i=1; i<=supers();++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user