Browse Source

Fixed off-by-one error in sparse matrix. Now the tests do not produce a segfault any longer.

tempestpy_adaptions
dehnert 12 years ago
parent
commit
30827b543e
  1. 2
      src/storage/SquareSparseMatrix.h

2
src/storage/SquareSparseMatrix.h

@ -530,7 +530,7 @@ public:
// them to the matrix individually.
uint_fast64_t rowStart;
uint_fast64_t rowEnd;
for (uint_fast64_t row = 0; row <= rowCount; ++row) {
for (uint_fast64_t row = 0; row < rowCount; ++row) {
rowStart = rowIndications[row];
rowEnd = rowIndications[row + 1];

Loading…
Cancel
Save