aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Sparse/SparseMatrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Sparse/SparseMatrix.h')
-rw-r--r--Eigen/src/Sparse/SparseMatrix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Sparse/SparseMatrix.h b/Eigen/src/Sparse/SparseMatrix.h
index 94407259f..8abe96e6d 100644
--- a/Eigen/src/Sparse/SparseMatrix.h
+++ b/Eigen/src/Sparse/SparseMatrix.h
@@ -163,7 +163,7 @@ class SparseMatrix
}
assert(m_outerIndex[outer+1] == m_data.size());
int id = m_outerIndex[outer+1];
- m_outerIndex[outer+1]++;
+ ++m_outerIndex[outer+1];
m_data.append(0, inner);
return m_data.value(id);
@@ -192,7 +192,7 @@ class SparseMatrix
assert(m_outerIndex[outer+1] == m_data.size() && "invalid outer index");
int startId = m_outerIndex[outer];
int id = m_outerIndex[outer+1]-1;
- m_outerIndex[outer+1]++;
+ ++m_outerIndex[outer+1];
m_data.resize(id+2);
while ( (id >= startId) && (m_data.index(id) > inner) )
@@ -212,7 +212,7 @@ class SparseMatrix
// find the last filled column
while (i>=0 && m_outerIndex[i]==0)
--i;
- i++;
+ ++i;
while (i<=m_outerSize)
{
m_outerIndex[i] = size;
@@ -299,7 +299,7 @@ class SparseMatrix
// FIXME the above copy could be merged with that pass
for (int j=0; j<otherCopy.outerSize(); ++j)
for (typename _OtherCopy::InnerIterator it(otherCopy, j); it; ++it)
- m_outerIndex[it.index()]++;
+ ++m_outerIndex[it.index()];
// prefix sum
int count = 0;