Browse Source

Bugfix for storm::utility::vector::reduceVector to correctly compute which choices were taken to achieve extremal values.

Former-commit-id: c200835cf5
tempestpy_adaptions
dehnert 11 years ago
parent
commit
5bb76eb12e
  1. 4
      src/utility/vector.h

4
src/utility/vector.h

@ -237,7 +237,7 @@ namespace storm {
for (; targetIt != targetIte; ++targetIt, ++rowGroupingIt) {
*targetIt = *sourceIt;
++sourceIt;
localChoice = 0;
localChoice = 1;
if (choices != nullptr) {
*choiceIt = 0;
}
@ -271,7 +271,7 @@ namespace storm {
for (; targetIt != targetIte; ++targetIt, ++rowGroupingIt) {
*targetIt = *sourceIt;
++sourceIt;
localChoice = 0;
localChoice = 1;
if (choices != nullptr) {
*choiceIt = 0;
}

Loading…
Cancel
Save