diff options
author | 2015-02-16 13:19:05 +0100 | |
---|---|---|
committer | 2015-02-16 13:19:05 +0100 | |
commit | aa6c516ec17fb44dff85b1abf3a1b05d58d3bc01 (patch) | |
tree | cd0b6ce4d023ff6734beecc167749d00f301c017 /Eigen/src/SparseCholesky/SimplicialCholesky.h | |
parent | fc202bab398ed9b78ef8452f8e4ef35e233965f6 (diff) |
Fix many long to int conversion warnings:
- fix usage of Index (API) versus StorageIndex (when multiple indexes are stored)
- use StorageIndex(val) when the input has already been check
- use internal::convert_index<StorageIndex>(val) when val is potentially unsafe (directly comes from user input)
Diffstat (limited to 'Eigen/src/SparseCholesky/SimplicialCholesky.h')
-rw-r--r-- | Eigen/src/SparseCholesky/SimplicialCholesky.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseCholesky/SimplicialCholesky.h b/Eigen/src/SparseCholesky/SimplicialCholesky.h index 2580151de..e2d7f95f2 100644 --- a/Eigen/src/SparseCholesky/SimplicialCholesky.h +++ b/Eigen/src/SparseCholesky/SimplicialCholesky.h @@ -202,7 +202,7 @@ class SimplicialCholeskyBase : public SparseSolverBase<Derived> void factorize(const MatrixType& a) { eigen_assert(a.rows()==a.cols()); - int size = a.cols(); + Index size = a.cols(); CholMatrixType tmp(size,size); ConstCholMatrixPtr pmat; @@ -226,7 +226,7 @@ class SimplicialCholeskyBase : public SparseSolverBase<Derived> void analyzePattern(const MatrixType& a, bool doLDLT) { eigen_assert(a.rows()==a.cols()); - int size = a.cols(); + Index size = a.cols(); CholMatrixType tmp(size,size); ConstCholMatrixPtr pmat; ordering(a, pmat, tmp); |