Browse Source

IterativeMinMaxLinearEquationSolver: Fixed not incrementing an iterator when computing the maximum absolute difference between two values

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
6891825803
  1. 1
      src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

1
src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

@ -424,6 +424,7 @@ namespace storm {
auto oldValueIt = oldValues.begin(); auto oldValueIt = oldValues.begin();
for (auto value : relevantValues) { for (auto value : relevantValues) {
result = storm::utility::max<ValueType>(result, storm::utility::abs<ValueType>(allValues[value] - *oldValueIt)); result = storm::utility::max<ValueType>(result, storm::utility::abs<ValueType>(allValues[value] - *oldValueIt));
++oldValueIt;
} }
return result; return result;
} }

Loading…
Cancel
Save