mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-06 13:15:14 +08:00
fix memory leak in SuperLUSupport
This commit is contained in:
parent
27d222d23e
commit
fc2d85d139
@ -397,6 +397,8 @@ class SuperLUBase
|
|||||||
|
|
||||||
void initFactorization(const MatrixType& a)
|
void initFactorization(const MatrixType& a)
|
||||||
{
|
{
|
||||||
|
set_default_options(&this->m_sluOptions);
|
||||||
|
|
||||||
const int size = a.rows();
|
const int size = a.rows();
|
||||||
m_matrix = a;
|
m_matrix = a;
|
||||||
|
|
||||||
@ -520,7 +522,8 @@ class SuperLU : public SuperLUBase<_MatrixType,SuperLU<_MatrixType> >
|
|||||||
*/
|
*/
|
||||||
void analyzePattern(const MatrixType& matrix)
|
void analyzePattern(const MatrixType& matrix)
|
||||||
{
|
{
|
||||||
init();
|
m_info = InvalidInput;
|
||||||
|
m_isInitialized = false;
|
||||||
Base::analyzePattern(matrix);
|
Base::analyzePattern(matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user