Go to the documentation of this file.
3 #ifndef DUNE_GMPFIELD_HH
4 #define DUNE_GMPFIELD_HH
12 #include <type_traits>
14 #if HAVE_GMP || DOXYGEN
27 template<
unsigned int precision >
31 typedef mpf_class Base;
56 typename EnableIf =
typename std::enable_if<
57 std::is_convertible<T, mpf_class>::value>::type
64 operator double ()
const
71 template <
unsigned int precision>
73 :
public std::integral_constant<bool, true> {
80 #endif // #ifndef DUNE_GMPFIELD_HH
GMPField()
Definition: gmpfield.hh:35
Number class for high precision floating point number using the GMP library mpf_class implementation.
Definition: gmpfield.hh:28
GMPField(const std::string &str)
initialize from a string
Definition: gmpfield.hh:49
Traits for type conversions and type information.
GMPField(const T &v)
initialize from a compatible scalar type
Definition: gmpfield.hh:59
Whether this type acts as a scalar in the context of (hierarchically blocked) containers.
Definition: typetraits.hh:162
GMPField(const char *str)
initialize from a string
Definition: gmpfield.hh:42
Dune namespace.
Definition: alignedallocator.hh:13