diff --git a/src/adapters/HyproAdapter.h b/src/adapters/HyproAdapter.h index 33ca968eb..e041b6881 100644 --- a/src/adapters/HyproAdapter.h +++ b/src/adapters/HyproAdapter.h @@ -25,11 +25,7 @@ namespace storm { template hypro::vector_t toHypro(std::vector const& v) { - hypro::vector_t res(v.size()); - for ( auto const& value : v){ - res << value; - } - return res; + return hypro::vector_t::Map(v.data(), v.size()); } template diff --git a/src/storage/geometry/Halfspace.h b/src/storage/geometry/Halfspace.h index 7ebd599cc..0db210b0e 100644 --- a/src/storage/geometry/Halfspace.h +++ b/src/storage/geometry/Halfspace.h @@ -45,11 +45,13 @@ namespace storm { if(it != normalVector().begin()){ stream << ", "; } + std::stringstream numberStream; if(numbersAsDouble) { - stream << std::setw(10) << storm::utility::convertNumber(*it); + numberStream << storm::utility::convertNumber(*it); } else { - stream << std::setw(10) << *it; + numberStream << *it; } + stream << std::setw(10) << numberStream.str(); } stream << ") * x <= " << offset(); return stream.str();