Browse Source

forgot a little something...

Former-commit-id: dc5b68bdb6
tempestpy_adaptions
TimQu 9 years ago
parent
commit
d02c918f6a
  1. 8
      src/models/sparse/StandardRewardModel.cpp

8
src/models/sparse/StandardRewardModel.cpp

@ -248,7 +248,13 @@ namespace storm {
if(hasStateRewards() && !std::all_of(getStateRewardVector().begin(), getStateRewardVector().end(), storm::utility::isZero<ValueType>)) {
return false;
}
return !(static_cast<bool>(this->optionalStateRewardVector) || static_cast<bool>(this->optionalStateActionRewardVector) || static_cast<bool>(this->optionalTransitionRewardMatrix));
if(hasStateActionRewards() && !std::all_of(getStateActionRewardVector().begin(), getStateActionRewardVector().end(), storm::utility::isZero<ValueType>)) {
return false;
}
if(hasTransitionRewards() && !std::all_of(getTransitionRewardMatrix().begin(), getTransitionRewardMatrix().end(), [](storm::storage::MatrixEntry<storm::storage::SparseMatrixIndexType, ValueType> entry){ return storm::utility::isZero(entry.getValue()); })) {
return false;
}
return true;
}

Loading…
Cancel
Save