mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-27 22:34:21 +08:00
sparse module: some trivial bugfixes
This commit is contained in:
parent
76fe2e1b34
commit
64f7fbe3f2
@ -120,7 +120,7 @@ class SparseLLT<MatrixType,Cholmod> : public SparseLLT<MatrixType>
|
||||
}
|
||||
|
||||
SparseLLT(const MatrixType& matrix, int flags = 0)
|
||||
: Base(matrix, flags), m_cholmodFactor(0)
|
||||
: Base(flags), m_cholmodFactor(0)
|
||||
{
|
||||
cholmod_start(&m_cholmod);
|
||||
compute(matrix);
|
||||
|
@ -154,7 +154,7 @@ void SparseLLT<MatrixType,Backend>::compute(const MatrixType& a)
|
||||
}
|
||||
for (int k=0; k<j+1; ++k)
|
||||
{
|
||||
typename MatrixType::InnerIterator it(m_matrix, k);
|
||||
typename CholMatrixType::InnerIterator it(m_matrix, k);
|
||||
while (it && it.index()<j)
|
||||
++it;
|
||||
if (it && it.index()==j)
|
||||
|
@ -225,7 +225,7 @@ class SparseLU<MatrixType,SuperLU> : public SparseLU<MatrixType>
|
||||
}
|
||||
|
||||
SparseLU(const MatrixType& matrix, int flags = NaturalOrdering)
|
||||
: Base(matrix, flags)
|
||||
: Base(flags)
|
||||
{
|
||||
compute(matrix);
|
||||
}
|
||||
@ -312,7 +312,7 @@ void SparseLU<MatrixType,SuperLU>::compute(const MatrixType& a)
|
||||
StatFree(&m_sluStat);
|
||||
|
||||
// FIXME how to check for errors ???
|
||||
m_succeeded = true;
|
||||
Base::m_succeeded = true;
|
||||
}
|
||||
|
||||
// template<typename MatrixType>
|
||||
|
@ -99,7 +99,7 @@ class SparseLLT<MatrixType,Taucs> : public SparseLLT<MatrixType>
|
||||
}
|
||||
|
||||
SparseLLT(const MatrixType& matrix, int flags = 0)
|
||||
: Base(matrix, flags), m_taucsSupernodalFactor(0)
|
||||
: Base(flags), m_taucsSupernodalFactor(0)
|
||||
{
|
||||
compute(matrix);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user