mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Fix for crash bug in SPQRSupport: Initialize pointers to nullptr to avoid free() calls of invalid pointers.
This commit is contained in:
parent
58a90c7463
commit
550af3938c
@ -260,12 +260,12 @@ class SPQR : public SparseSolverBase<SPQR<MatrixType_> >
|
|||||||
int m_ordering; // Ordering method to use, see SPQR's manual
|
int m_ordering; // Ordering method to use, see SPQR's manual
|
||||||
int m_allow_tol; // Allow to use some tolerance during numerical factorization.
|
int m_allow_tol; // Allow to use some tolerance during numerical factorization.
|
||||||
RealScalar m_tolerance; // treat columns with 2-norm below this tolerance as zero
|
RealScalar m_tolerance; // treat columns with 2-norm below this tolerance as zero
|
||||||
mutable cholmod_sparse *m_cR; // The sparse R factor in cholmod format
|
mutable cholmod_sparse *m_cR = nullptr; // The sparse R factor in cholmod format
|
||||||
mutable MatrixType m_R; // The sparse matrix R in Eigen format
|
mutable MatrixType m_R; // The sparse matrix R in Eigen format
|
||||||
mutable StorageIndex *m_E; // The permutation applied to columns
|
mutable StorageIndex *m_E = nullptr; // The permutation applied to columns
|
||||||
mutable cholmod_sparse *m_H; //The householder vectors
|
mutable cholmod_sparse *m_H = nullptr; //The householder vectors
|
||||||
mutable StorageIndex *m_HPinv; // The row permutation of H
|
mutable StorageIndex *m_HPinv = nullptr; // The row permutation of H
|
||||||
mutable cholmod_dense *m_HTau; // The Householder coefficients
|
mutable cholmod_dense *m_HTau = nullptr; // The Householder coefficients
|
||||||
mutable Index m_rank; // The rank of the matrix
|
mutable Index m_rank; // The rank of the matrix
|
||||||
mutable cholmod_common m_cc; // Workspace and parameters
|
mutable cholmod_common m_cc; // Workspace and parameters
|
||||||
bool m_useDefaultThreshold; // Use default threshold
|
bool m_useDefaultThreshold; // Use default threshold
|
||||||
|
Loading…
x
Reference in New Issue
Block a user