|
@ -518,7 +518,7 @@ namespace storm { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<> |
|
|
template<> |
|
|
RationalFunction convertNumber(int_fast64_t const& number){ |
|
|
|
|
|
|
|
|
RationalFunction convertNumber(int_fast64_t const& number) { |
|
|
STORM_LOG_ASSERT(static_cast<carl::sint>(number) == number, "Rationalizing failed, because the number is too large."); |
|
|
STORM_LOG_ASSERT(static_cast<carl::sint>(number) == number, "Rationalizing failed, because the number is too large."); |
|
|
return RationalFunction(carl::rationalize<RationalFunctionCoefficient>(static_cast<carl::sint>(number))); |
|
|
return RationalFunction(carl::rationalize<RationalFunctionCoefficient>(static_cast<carl::sint>(number))); |
|
|
} |
|
|
} |
|
@ -530,8 +530,9 @@ namespace storm { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<> |
|
|
template<> |
|
|
ClnRationalNumber convertNumber(RationalFunction const& number){ |
|
|
|
|
|
return convertNumber<ClnRationalNumber>(number.nominatorAsNumber() / number.denominatorAsNumber()); |
|
|
|
|
|
|
|
|
ClnRationalNumber convertNumber(RationalFunction const& number) { |
|
|
|
|
|
storm::RationalFunctionCoefficient tmp = number.nominatorAsNumber() / number.denominatorAsNumber(); |
|
|
|
|
|
return convertNumber<ClnRationalNumber>(tmp); |
|
|
} |
|
|
} |
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|