diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-05-07 14:20:42 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-05-07 14:20:42 +0200 |
commit | ebf8ca4fa8c390806cfece958743234a8303f7bb (patch) | |
tree | ce5bab4edf5b07f2bb93af2c62ce1a29e6404f50 /Eigen/src | |
parent | dd698e6680392315bb34c4b5250203fc001721ee (diff) |
Fix bug #1010: m_isInitialized was improperly updated
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/IterativeLinearSolvers/IncompleteLUT.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h index b7f8debb3..102e01f76 100644 --- a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +++ b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h @@ -157,7 +157,6 @@ class IncompleteLUT : public SparseSolverBase<IncompleteLUT<_Scalar, _StorageInd { analyzePattern(amat); factorize(amat); - m_isInitialized = m_factorizationIsOk; return *this; } @@ -232,6 +231,8 @@ void IncompleteLUT<Scalar,StorageIndex>::analyzePattern(const _MatrixType& amat) m_Pinv = m_P.inverse(); // ... and the inverse permutation m_analysisIsOk = true; + m_factorizationIsOk = false; + m_isInitialized = false; } template <typename Scalar, typename StorageIndex> @@ -440,6 +441,7 @@ void IncompleteLUT<Scalar,StorageIndex>::factorize(const _MatrixType& amat) m_lu.makeCompressed(); m_factorizationIsOk = true; + m_isInitialized = m_factorizationIsOk; m_info = Success; } |