Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
KwekMehlhorn.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <utility>
5#include <vector>
6
8
9namespace storm {
10namespace utility {
11namespace kwek_mehlhorn {
12
13template<typename IntegerType>
14std::pair<IntegerType, IntegerType> findRational(IntegerType const& alpha, IntegerType const& beta, IntegerType const& gamma, IntegerType const& delta);
15
16template<typename RationalType, typename ImpreciseType>
17std::pair<typename NumberTraits<RationalType>::IntegerType, typename NumberTraits<RationalType>::IntegerType> truncateToRational(ImpreciseType const& value,
18 uint64_t precision);
19
20template<typename RationalType>
21std::pair<typename NumberTraits<RationalType>::IntegerType, typename NumberTraits<RationalType>::IntegerType> truncateToRational(double const& value,
22 uint64_t precision);
23
24template<typename RationalType, typename ImpreciseType>
25RationalType findRational(uint64_t precision, ImpreciseType const& value);
26
27template<typename RationalType, typename ImpreciseType>
28RationalType sharpen(uint64_t precision, ImpreciseType const& value);
29
30template<typename RationalType, typename ImpreciseType>
31void sharpen(uint64_t precision, std::vector<ImpreciseType> const& input, std::vector<RationalType>& output);
32
33} // namespace kwek_mehlhorn
34} // namespace utility
35} // namespace storm
std::pair< typename NumberTraits< RationalType >::IntegerType, typename NumberTraits< RationalType >::IntegerType > truncateToRational(ImpreciseType const &value, uint64_t precision)
std::pair< IntegerType, IntegerType > findRational(IntegerType const &alpha, IntegerType const &beta, IntegerType const &gamma, IntegerType const &delta)
RationalType sharpen(uint64_t precision, ImpreciseType const &value)
LabParser.cpp.
Definition cli.cpp:18