diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-05-30 16:00:58 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-05-30 16:00:58 -0400 |
commit | aaaade4b3d66d67d2c08af3372c3965e7255b2e8 (patch) | |
tree | 76dfaefb014333b2f98c6db660454771655ea8b7 /Eigen/src/Sparse/CholmodSupport.h | |
parent | faa3ff3be6a02b57c6cb05edc87375e54ab96606 (diff) |
the Index types change.
As discussed on the list (too long to explain here).
Diffstat (limited to 'Eigen/src/Sparse/CholmodSupport.h')
-rw-r--r-- | Eigen/src/Sparse/CholmodSupport.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Sparse/CholmodSupport.h b/Eigen/src/Sparse/CholmodSupport.h index cf407240f..82a09f35c 100644 --- a/Eigen/src/Sparse/CholmodSupport.h +++ b/Eigen/src/Sparse/CholmodSupport.h @@ -114,8 +114,8 @@ MappedSparseMatrix<Scalar,Flags>::MappedSparseMatrix(cholmod_sparse& cm) { m_innerSize = cm.nrow; m_outerSize = cm.ncol; - m_outerIndex = reinterpret_cast<int*>(cm.p); - m_innerIndices = reinterpret_cast<int*>(cm.i); + m_outerIndex = reinterpret_cast<Index*>(cm.p); + m_innerIndices = reinterpret_cast<Index*>(cm.i); m_values = reinterpret_cast<Scalar*>(cm.x); m_nnz = m_outerIndex[cm.ncol]; } @@ -220,7 +220,7 @@ template<typename MatrixType> template<typename Derived> bool SparseLLT<MatrixType,Cholmod>::solveInPlace(MatrixBase<Derived> &b) const { - const int size = m_cholmodFactor->n; + const Index size = m_cholmodFactor->n; ei_assert(size==b.rows()); // this uses Eigen's triangular sparse solver |