Browse Source

small fix

Former-commit-id: 92995bf01f
tempestpy_adaptions
TimQu 9 years ago
parent
commit
6db2886624
  1. 6
      src/adapters/HyproAdapter.h
  2. 6
      src/storage/geometry/Halfspace.h

6
src/adapters/HyproAdapter.h

@ -25,11 +25,7 @@ namespace storm {
template <typename T>
hypro::vector_t<T> toHypro(std::vector<T> const& v) {
hypro::vector_t<T> res(v.size());
for ( auto const& value : v){
res << value;
}
return res;
return hypro::vector_t<T>::Map(v.data(), v.size());
}
template <typename T>

6
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<double>(*it);
numberStream << storm::utility::convertNumber<double>(*it);
} else {
stream << std::setw(10) << *it;
numberStream << *it;
}
stream << std::setw(10) << numberStream.str();
}
stream << ") * x <= " << offset();
return stream.str();

Loading…
Cancel
Save