Browse Source

Fix in SparseMatrix::swapRows

Former-commit-id: 754c5f3abf
tempestpy_adaptions
TimQu 8 years ago
parent
commit
3d7442b5c1
  1. 6
      src/storage/SparseMatrix.cpp

6
src/storage/SparseMatrix.cpp

@ -684,6 +684,9 @@ namespace storm {
*writeIt = std::move(intermediateRowEntry);
++writeIt;
}
} else {
// skip the intermediate rows
writeIt = getRow(smallerRow).begin();
}
// write the larger row
for(auto& largerRowEntry : largerRowContents) {
@ -708,6 +711,9 @@ namespace storm {
*writeIt = std::move(*intermediateRowEntryIt);
--writeIt;
}
} else {
// skip the intermediate rows
writeIt = getRow(smallerRow).end() - 1;
}
// write the larger row
for(auto largerRowEntryIt = largerRowContents.rbegin(); largerRowEntryIt != largerRowContents.rend(); ++largerRowEntryIt) {

Loading…
Cancel
Save