Sparse module: bugfix in SparseMatrix::resize(), now the indices are

correctly initialized to 0.
This commit is contained in:
Gael Guennebaud
2009-01-15 13:30:50 +00:00
parent 96e1e582ff
commit 87241089e1
4 changed files with 21 additions and 16 deletions

View File

@@ -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)