mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Add missing consts for rows and cols functions in SparseLU
This commit is contained in:
parent
a12b8a8c75
commit
6d451cf2b6
@ -706,8 +706,8 @@ struct SparseLUMatrixLReturnType : internal::no_assignment_operator
|
|||||||
typedef typename MappedSupernodalType::Scalar Scalar;
|
typedef typename MappedSupernodalType::Scalar Scalar;
|
||||||
explicit SparseLUMatrixLReturnType(const MappedSupernodalType& mapL) : m_mapL(mapL)
|
explicit SparseLUMatrixLReturnType(const MappedSupernodalType& mapL) : m_mapL(mapL)
|
||||||
{ }
|
{ }
|
||||||
Index rows() { return m_mapL.rows(); }
|
Index rows() const { return m_mapL.rows(); }
|
||||||
Index cols() { return m_mapL.cols(); }
|
Index cols() const { return m_mapL.cols(); }
|
||||||
template<typename Dest>
|
template<typename Dest>
|
||||||
void solveInPlace( MatrixBase<Dest> &X) const
|
void solveInPlace( MatrixBase<Dest> &X) const
|
||||||
{
|
{
|
||||||
@ -723,8 +723,8 @@ struct SparseLUMatrixUReturnType : internal::no_assignment_operator
|
|||||||
SparseLUMatrixUReturnType(const MatrixLType& mapL, const MatrixUType& mapU)
|
SparseLUMatrixUReturnType(const MatrixLType& mapL, const MatrixUType& mapU)
|
||||||
: m_mapL(mapL),m_mapU(mapU)
|
: m_mapL(mapL),m_mapU(mapU)
|
||||||
{ }
|
{ }
|
||||||
Index rows() { return m_mapL.rows(); }
|
Index rows() const { return m_mapL.rows(); }
|
||||||
Index cols() { return m_mapL.cols(); }
|
Index cols() const { return m_mapL.cols(); }
|
||||||
|
|
||||||
template<typename Dest> void solveInPlace(MatrixBase<Dest> &X) const
|
template<typename Dest> void solveInPlace(MatrixBase<Dest> &X) const
|
||||||
{
|
{
|
||||||
|
@ -75,12 +75,12 @@ class MappedSuperNodalMatrix
|
|||||||
/**
|
/**
|
||||||
* Number of rows
|
* Number of rows
|
||||||
*/
|
*/
|
||||||
Index rows() { return m_row; }
|
Index rows() const { return m_row; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of columns
|
* Number of columns
|
||||||
*/
|
*/
|
||||||
Index cols() { return m_col; }
|
Index cols() const { return m_col; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the array of nonzero values packed by column
|
* Return the array of nonzero values packed by column
|
||||||
|
Loading…
x
Reference in New Issue
Block a user