dune-common  2.5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Dune::GMPField< precision > Class Template Reference

Number class for high precision floating point number using the GMP library mpf_class implementation. More...

#include <dune/common/gmpfield.hh>

Inheritance diagram for Dune::GMPField< precision >:

Public Member Functions

 GMPField ()
 
 GMPField (const char *str)
 initialize from a string More...
 
 GMPField (const std::string &str)
 initialize from a string More...
 
template<class T , typename EnableIf = typename std::enable_if< std::is_convertible<T, mpf_class>::value>::type>
 GMPField (const T &v)
 initialize from a compatible scalar type More...
 
 operator double () const
 

Detailed Description

template<unsigned int precision>
class Dune::GMPField< precision >

Number class for high precision floating point number using the GMP library mpf_class implementation.

Constructor & Destructor Documentation

template<unsigned int precision>
Dune::GMPField< precision >::GMPField ( )
inline

default constructor, initialize to zero

template<unsigned int precision>
Dune::GMPField< precision >::GMPField ( const char *  str)
inline

initialize from a string

Note
this is the only reliable way to initialize with higher precision values
template<unsigned int precision>
Dune::GMPField< precision >::GMPField ( const std::string &  str)
inline

initialize from a string

Note
this is the only reliable way to initialize with higher precision values
template<unsigned int precision>
template<class T , typename EnableIf = typename std::enable_if< std::is_convertible<T, mpf_class>::value>::type>
Dune::GMPField< precision >::GMPField ( const T &  v)
inline

initialize from a compatible scalar type

Member Function Documentation

template<unsigned int precision>
Dune::GMPField< precision >::operator double ( ) const
inline

The documentation for this class was generated from the following file: