mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix regression in DynamicSparseMatrix and SuperLUSupport wrt recent change on nonZeros/nonZerosEstimate
This commit is contained in:
@@ -165,8 +165,9 @@ struct SluMatrix : SuperMatrix
|
||||
}
|
||||
|
||||
template<typename MatrixType>
|
||||
static SluMatrix Map(SparseMatrixBase<MatrixType>& mat)
|
||||
static SluMatrix Map(SparseMatrixBase<MatrixType>& a_mat)
|
||||
{
|
||||
MatrixType &mat(a_mat.derived());
|
||||
SluMatrix res;
|
||||
if ((MatrixType::Flags&RowMajorBit)==RowMajorBit)
|
||||
{
|
||||
@@ -184,9 +185,9 @@ struct SluMatrix : SuperMatrix
|
||||
res.Mtype = SLU_GE;
|
||||
|
||||
res.storage.nnz = internal::convert_index<int>(mat.nonZeros());
|
||||
res.storage.values = mat.derived().valuePtr();
|
||||
res.storage.innerInd = mat.derived().innerIndexPtr();
|
||||
res.storage.outerInd = mat.derived().outerIndexPtr();
|
||||
res.storage.values = mat.valuePtr();
|
||||
res.storage.innerInd = mat.innerIndexPtr();
|
||||
res.storage.outerInd = mat.outerIndexPtr();
|
||||
|
||||
res.setScalarType<typename MatrixType::Scalar>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user