diff --git a/src/storm/utility/vector.h b/src/storm/utility/vector.h index 53e89cacc..153f74a36 100644 --- a/src/storm/utility/vector.h +++ b/src/storm/utility/vector.h @@ -1155,6 +1155,16 @@ namespace storm { bool hasNonZeroEntry(std::vector const& v){ return std::any_of(v.begin(), v.end(), [](T value){return !storm::utility::isZero(value);}); } + + template + bool hasZeroEntry(std::vector const& v){ + return std::any_of(v.begin(), v.end(), [](T value){return storm::utility::isZero(value);}); + } + + template + bool hasInfinityEntry(std::vector const& v){ + return std::any_of(v.begin(), v.end(), [](T value){return storm::utility::isInfinity(value);}); + } inline std::set getVariables(std::vector const& vector) { std::set result;