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> {
Traits for type conversions and type information.
Dune namespace.
Definition alignment.hh:11
Number class for high precision floating point number using the GMP library mpf_class implementation.
Definition gmpfield.hh:29
GMPField(const T &v)
initialize from a compatible scalar type
Definition gmpfield.hh:58
GMPField()
Definition gmpfield.hh:34
GMPField(const std::string &str)
initialize from a string
Definition gmpfield.hh:48
GMPField(const char *str)
initialize from a string
Definition gmpfield.hh:41
Definition typetraits.hh:275