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 Whether this type acts as a scalar in the context of (hierarchically blocked) containers.
Definition: typetraits.hh:161
Dune namespace.
Definition: alignedallocator.hh:9
GMPField(const std::string &str)
initialize from a string
Definition: gmpfield.hh:48
GMPField()
Definition: gmpfield.hh:34
Number class for high precision floating point number using the GMP library mpf_class implementation...
Definition: gmpfield.hh:27
Traits for type conversions and type information.
GMPField(const T &v)
initialize from a compatible scalar type
Definition: gmpfield.hh:58
GMPField(const char *str)
initialize from a string
Definition: gmpfield.hh:41