|
|
@ -1156,6 +1156,16 @@ namespace storm { |
|
|
|
return std::any_of(v.begin(), v.end(), [](T value){return !storm::utility::isZero(value);}); |
|
|
|
} |
|
|
|
|
|
|
|
template<typename T> |
|
|
|
bool hasZeroEntry(std::vector<T> const& v){ |
|
|
|
return std::any_of(v.begin(), v.end(), [](T value){return storm::utility::isZero(value);}); |
|
|
|
} |
|
|
|
|
|
|
|
template<typename T> |
|
|
|
bool hasInfinityEntry(std::vector<T> const& v){ |
|
|
|
return std::any_of(v.begin(), v.end(), [](T value){return storm::utility::isInfinity(value);}); |
|
|
|
} |
|
|
|
|
|
|
|
inline std::set<storm::RationalFunctionVariable> getVariables(std::vector<storm::RationalFunction> const& vector) { |
|
|
|
std::set<storm::RationalFunctionVariable> result; |
|
|
|
for(auto const& entry : vector) { |
|
|
|