aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Sparse
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-15 13:30:50 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-15 13:30:50 +0000
commit87241089e19147cb7643387b53da8500b2124dcc (patch)
tree7c09ee7dbc90908aa230022f91f0c26ba2147b72 /Eigen/src/Sparse
parent96e1e582ff879cb2287847e3d9129cd121a978dd (diff)
Sparse module: bugfix in SparseMatrix::resize(), now the indices are
correctly initialized to 0.
Diffstat (limited to 'Eigen/src/Sparse')
-rw-r--r--Eigen/src/Sparse/SparseMatrix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Sparse/SparseMatrix.h b/Eigen/src/Sparse/SparseMatrix.h
index 6bc566153..4f077424a 100644
--- a/Eigen/src/Sparse/SparseMatrix.h
+++ b/Eigen/src/Sparse/SparseMatrix.h
@@ -244,6 +244,7 @@ class SparseMatrix
delete[] m_outerIndex;
m_outerIndex = new int [outerSize+1];
m_outerSize = outerSize;
+ memset(m_outerIndex, 0, (m_outerSize+1)*sizeof(int));
}
}
void resizeNonZeros(int size)