9 template<typename T, std::enable_if_t<is_ran_type<T>::value,
int> = 0>
14 namespace convert_ran {
15 template<
typename T,
typename S>
23 return LPRealAlgebraicNumber(r.
value()) ;
30 struct ConvertHelper<IntRepRealAlgebraicNumber<R>, LPRealAlgebraicNumber> {
31 static IntRepRealAlgebraicNumber<R>
convert(
const LPRealAlgebraicNumber& r) {
33 return IntRepRealAlgebraicNumber<R>(r.value());
35 return IntRepRealAlgebraicNumber<R>(r.polynomial(), r.interval());
41 template<typename T, typename S, std::enable_if_t<is_ran_type<T>::value && is_ran_type<S>::value && !std::is_same<T,S>::value,
int> = 0>
Represent a real algebraic number (RAN) in one of several ways:
carl is the main namespace for the library.
BasicConstraint< ToPoly > convert(const typename ToPoly::ContextType &context, const BasicConstraint< FromPoly > &c)
const auto & value() const
const auto & interval() const
const auto & polynomial() const