mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Sparse module: bugfix in SparseMatrix::resize(), now the indices are
correctly initialized to 0.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user