diff options
author | 2011-12-20 18:10:02 +0100 | |
---|---|---|
committer | 2011-12-20 18:10:02 +0100 | |
commit | 50d756b9ea32027ce027c238baf4258ee086da38 (patch) | |
tree | 10145d59d66516a8eee556122e23c6620be3b04d /Eigen/src | |
parent | 15d781b64c9016a3563126106f1d24ee8321ba68 (diff) |
fix bug #394: innerVector::nonZeros() was broken for uncompressed mode
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/SparseCore/SparseBlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h index a6cde9df3..2b092dc21 100644 --- a/Eigen/src/SparseCore/SparseBlock.h +++ b/Eigen/src/SparseCore/SparseBlock.h @@ -243,7 +243,7 @@ class SparseInnerVectorSet<SparseMatrix<_Scalar, _Options, _Index>, Size> else if(m_outerSize.value()==0) return 0; else - return Map<const Matrix<Index,Size,1> >(m_matrix.innerNonZeroPtr(), m_outerSize.value()).sum(); + return Map<const Matrix<Index,Size,1> >(m_matrix.innerNonZeroPtr()+m_outerStart, m_outerSize.value()).sum(); } const Scalar& lastCoeff() const |