Browse Source

fixed a bug pointed out by Matthias

Former-commit-id: 0a4355c580
tempestpy_adaptions
dehnert 9 years ago
parent
commit
1c7f5dae56
  1. 4
      src/modelchecker/csl/helper/SparseCtmcCslHelper.cpp

4
src/modelchecker/csl/helper/SparseCtmcCslHelper.cpp

@ -262,10 +262,6 @@ namespace storm {
if (startingIteration == 0) {
result = values;
storm::utility::vector::scaleVectorInPlace(result, std::get<3>(foxGlynnResult)[0]);
std::function<ValueType(ValueType const&, ValueType const&)> addAndScale = [&foxGlynnResult] (ValueType const& a, ValueType const& b) { return a + std::get<3>(foxGlynnResult)[0] * b; };
if (addVector != nullptr) {
storm::utility::vector::applyPointwise(result, *addVector, result, addAndScale);
}
++startingIteration;
} else {
if (computeCumulativeReward) {

Loading…
Cancel
Save