mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-15 17:41:30 +08:00
Fix bug #1010: m_isInitialized was improperly updated
(grafted from ebf8ca4fa8c390806cfece958743234a8303f7bb )
This commit is contained in:
parent
7713b29084
commit
62d334c7d3
@ -150,7 +150,6 @@ class IncompleteLUT : internal::noncopyable
|
|||||||
{
|
{
|
||||||
analyzePattern(amat);
|
analyzePattern(amat);
|
||||||
factorize(amat);
|
factorize(amat);
|
||||||
m_isInitialized = m_factorizationIsOk;
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,6 +234,8 @@ void IncompleteLUT<Scalar>::analyzePattern(const _MatrixType& amat)
|
|||||||
m_Pinv = m_P.inverse(); // ... and the inverse permutation
|
m_Pinv = m_P.inverse(); // ... and the inverse permutation
|
||||||
|
|
||||||
m_analysisIsOk = true;
|
m_analysisIsOk = true;
|
||||||
|
m_factorizationIsOk = false;
|
||||||
|
m_isInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Scalar>
|
template <typename Scalar>
|
||||||
@ -442,6 +443,7 @@ void IncompleteLUT<Scalar>::factorize(const _MatrixType& amat)
|
|||||||
m_lu.makeCompressed();
|
m_lu.makeCompressed();
|
||||||
|
|
||||||
m_factorizationIsOk = true;
|
m_factorizationIsOk = true;
|
||||||
|
m_isInitialized = m_factorizationIsOk;
|
||||||
m_info = Success;
|
m_info = Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user