No range check for sparse matrix
Submitted by Kolja Brix
Assigned to Nobody
Link to original bugzilla bug (#626)
Description
Created attachment 361
Test for sparse matrix range check
There is no range check for sparse matrices:
For a standard SparseMatrix<double, Dynamic> (row major format?), elements above the upper column limit can be inserted, e.g. an element in column 11 in a 10 x 10 sparse matrix. There is no error or exception thrown.
Inserting an entry above the row limit usually leads to a segmentation fault.
Both behaviors are demonstrated in the example code attached.
Attachment 361, "Test for sparse matrix range check":
matrixRangeTest.cpp
Blocking
Edited by Eigen Bugzilla