diff options
author | 2015-02-13 18:57:41 +0100 | |
---|---|---|
committer | 2015-02-13 18:57:41 +0100 | |
commit | fc202bab398ed9b78ef8452f8e4ef35e233965f6 (patch) | |
tree | f0f427ee115aa8579b0d43a49c2ad762b1b0f57c /Eigen/src/SparseCore/AmbiVector.h | |
parent | fe513199808654bfa5080fe16bda7dcdafbd57c6 (diff) |
Index refactoring: StorageIndex must be used for storage only (and locally when it make sense). In all other cases use the global Index type.
Diffstat (limited to 'Eigen/src/SparseCore/AmbiVector.h')
-rw-r--r-- | Eigen/src/SparseCore/AmbiVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h index 8bde5d58e..1233e164e 100644 --- a/Eigen/src/SparseCore/AmbiVector.h +++ b/Eigen/src/SparseCore/AmbiVector.h @@ -36,7 +36,7 @@ class AmbiVector void init(double estimatedDensity); void init(int mode); - StorageIndex nonZeros() const; + Index nonZeros() const; /** Specifies a sub-vector to work on */ void setBounds(Index start, Index end) { m_start = convert_index(start); m_end = convert_index(end); } @@ -126,7 +126,7 @@ class AmbiVector /** \returns the number of non zeros in the current sub vector */ template<typename _Scalar,typename _StorageIndex> -_StorageIndex AmbiVector<_Scalar,_StorageIndex>::nonZeros() const +Index AmbiVector<_Scalar,_StorageIndex>::nonZeros() const { if (m_mode==IsSparse) return m_llSize; |