sparse module: some trivial bugfixes

This commit is contained in:
Gael Guennebaud 2008-10-19 17:07:20 +00:00
parent 76fe2e1b34
commit 64f7fbe3f2
4 changed files with 5 additions and 5 deletions

View File

@ -120,7 +120,7 @@ class SparseLLT<MatrixType,Cholmod> : public SparseLLT<MatrixType>
} }
SparseLLT(const MatrixType& matrix, int flags = 0) SparseLLT(const MatrixType& matrix, int flags = 0)
: Base(matrix, flags), m_cholmodFactor(0) : Base(flags), m_cholmodFactor(0)
{ {
cholmod_start(&m_cholmod); cholmod_start(&m_cholmod);
compute(matrix); compute(matrix);

View File

@ -154,7 +154,7 @@ void SparseLLT<MatrixType,Backend>::compute(const MatrixType& a)
} }
for (int k=0; k<j+1; ++k) 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) while (it && it.index()<j)
++it; ++it;
if (it && it.index()==j) if (it && it.index()==j)

View File

@ -225,7 +225,7 @@ class SparseLU<MatrixType,SuperLU> : public SparseLU<MatrixType>
} }
SparseLU(const MatrixType& matrix, int flags = NaturalOrdering) SparseLU(const MatrixType& matrix, int flags = NaturalOrdering)
: Base(matrix, flags) : Base(flags)
{ {
compute(matrix); compute(matrix);
} }
@ -312,7 +312,7 @@ void SparseLU<MatrixType,SuperLU>::compute(const MatrixType& a)
StatFree(&m_sluStat); StatFree(&m_sluStat);
// FIXME how to check for errors ??? // FIXME how to check for errors ???
m_succeeded = true; Base::m_succeeded = true;
} }
// template<typename MatrixType> // template<typename MatrixType>

View File

@ -99,7 +99,7 @@ class SparseLLT<MatrixType,Taucs> : public SparseLLT<MatrixType>
} }
SparseLLT(const MatrixType& matrix, int flags = 0) SparseLLT(const MatrixType& matrix, int flags = 0)
: Base(matrix, flags), m_taucsSupernodalFactor(0) : Base(flags), m_taucsSupernodalFactor(0)
{ {
compute(matrix); compute(matrix);
} }