This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 1141
Collapse All | Expand All

(-)a/Eigen/src/CholmodSupport/CholmodSupport.h (-2 / +4 lines)
Lines 169-192 class CholmodBase : public SparseSolverB Link Here
169
    typedef typename MatrixType::Scalar Scalar;
169
    typedef typename MatrixType::Scalar Scalar;
170
    typedef typename MatrixType::RealScalar RealScalar;
170
    typedef typename MatrixType::RealScalar RealScalar;
171
    typedef MatrixType CholMatrixType;
171
    typedef MatrixType CholMatrixType;
172
    typedef typename MatrixType::StorageIndex StorageIndex;
172
    typedef typename MatrixType::StorageIndex StorageIndex;
173
173
174
  public:
174
  public:
175
175
176
    CholmodBase()
176
    CholmodBase()
177
      : m_cholmodFactor(0), m_info(Success)
177
      : m_cholmodFactor(0), m_info(Success),
178
        m_factorizationIsOk(false), m_analysisIsOk(false)
178
    {
179
    {
179
      m_shiftOffset[0] = m_shiftOffset[1] = RealScalar(0.0);
180
      m_shiftOffset[0] = m_shiftOffset[1] = RealScalar(0.0);
180
      cholmod_start(&m_cholmod);
181
      cholmod_start(&m_cholmod);
181
    }
182
    }
182
183
183
    explicit CholmodBase(const MatrixType& matrix)
184
    explicit CholmodBase(const MatrixType& matrix)
184
      : m_cholmodFactor(0), m_info(Success)
185
      : m_cholmodFactor(0), m_info(Success),
186
        m_factorizationIsOk(false), m_analysisIsOk(false)
185
    {
187
    {
186
      m_shiftOffset[0] = m_shiftOffset[1] = RealScalar(0.0);
188
      m_shiftOffset[0] = m_shiftOffset[1] = RealScalar(0.0);
187
      cholmod_start(&m_cholmod);
189
      cholmod_start(&m_cholmod);
188
      compute(matrix);
190
      compute(matrix);
189
    }
191
    }
190
192
191
    ~CholmodBase()
193
    ~CholmodBase()
192
    {
194
    {

Return to bug 1141