Browse Source

Fix in SparseMatrix::swapRows

Former-commit-id: 40e2d890d4 [formerly f46095e877]
Former-commit-id: 61fcf545cb
tempestpy_adaptions
TimQu 8 years ago
parent
commit
4d53dc4930
  1. 6
      src/storage/SparseMatrix.cpp

6
src/storage/SparseMatrix.cpp

@ -688,6 +688,9 @@ namespace storm {
*writeIt = std::move(intermediateRowEntry);
++writeIt;
}
} else {
// skip the intermediate rows
writeIt = getRow(smallerRow).begin();
}
// Write the larger row to its new position.
@ -720,6 +723,9 @@ namespace storm {
*writeIt = std::move(*intermediateRowEntryIt);
--writeIt;
}
} else {
// skip the intermediate rows
writeIt = getRow(smallerRow).end() - 1;
}
// Write the larger row to its new position.

Loading…
Cancel
Save