3 #ifndef DUNE_GMPFIELD_HH
4 #define DUNE_GMPFIELD_HH
13 #if HAVE_GMP || DOXYGEN
26 template<
unsigned int precision >
30 typedef mpf_class Base;
55 typename EnableIf =
typename std::enable_if<
56 std::is_convertible<T, mpf_class>::value>::type
63 operator double ()
const
70 template <
unsigned int precision>
72 :
public std::integral_constant<bool, true> {
78 #endif // #ifndef DUNE_GMPFIELD_HH
GMPField(const char *str)
initialize from a string
Definition: gmpfield.hh:41
GMPField(const T &v)
initialize from a compatible scalar type
Definition: gmpfield.hh:58
Definition: typetraits.hh:296
GMPField(const std::string &str)
initialize from a string
Definition: gmpfield.hh:48
GMPField()
Definition: gmpfield.hh:34
Traits for type conversions and type information.
Number class for high precision floating point number using the GMP library mpf_class implementation...
Definition: gmpfield.hh:27