NanoStructures  1.0
DMFT solver for layered, strongly correlated nanostructures

Public Member Functions

 mpreal (const mpreal &u)
 
 mpreal (const mpfr_t u)
 
 mpreal (const mpf_t u)
 
 mpreal (const mpz_t u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const mpq_t u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const double u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const long double u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const unsigned long int u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const unsigned int u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const long int u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const int u, mp_prec_t prec=default_prec, mp_rnd_t mode=default_rnd)
 
 mpreal (const char *s, mp_prec_t prec=default_prec, int base=default_base, mp_rnd_t mode=default_rnd)
 
mprealoperator= (const mpreal &v)
 
mprealoperator= (const mpf_t v)
 
mprealoperator= (const mpz_t v)
 
mprealoperator= (const mpq_t v)
 
mprealoperator= (const long double v)
 
mprealoperator= (const double v)
 
mprealoperator= (const unsigned long int v)
 
mprealoperator= (const unsigned int v)
 
mprealoperator= (const long int v)
 
mprealoperator= (const int v)
 
mprealoperator= (const char *s)
 
mprealoperator+= (const mpreal &v)
 
mprealoperator+= (const mpf_t v)
 
mprealoperator+= (const mpz_t v)
 
mprealoperator+= (const mpq_t v)
 
mprealoperator+= (const long double u)
 
mprealoperator+= (const double u)
 
mprealoperator+= (const unsigned long int u)
 
mprealoperator+= (const unsigned int u)
 
mprealoperator+= (const long int u)
 
mprealoperator+= (const int u)
 
const mpreal operator+ () const
 
mprealoperator++ ()
 
const mpreal operator++ (int)
 
mprealoperator-= (const mpreal &v)
 
mprealoperator-= (const mpz_t v)
 
mprealoperator-= (const mpq_t v)
 
mprealoperator-= (const long double u)
 
mprealoperator-= (const double u)
 
mprealoperator-= (const unsigned long int u)
 
mprealoperator-= (const unsigned int u)
 
mprealoperator-= (const long int u)
 
mprealoperator-= (const int u)
 
const mpreal operator- () const
 
mprealoperator-- ()
 
const mpreal operator-- (int)
 
mprealoperator*= (const mpreal &v)
 
mprealoperator*= (const mpz_t v)
 
mprealoperator*= (const mpq_t v)
 
mprealoperator*= (const long double v)
 
mprealoperator*= (const double v)
 
mprealoperator*= (const unsigned long int v)
 
mprealoperator*= (const unsigned int v)
 
mprealoperator*= (const long int v)
 
mprealoperator*= (const int v)
 
mprealoperator/= (const mpreal &v)
 
mprealoperator/= (const mpz_t v)
 
mprealoperator/= (const mpq_t v)
 
mprealoperator/= (const long double v)
 
mprealoperator/= (const double v)
 
mprealoperator/= (const unsigned long int v)
 
mprealoperator/= (const unsigned int v)
 
mprealoperator/= (const long int v)
 
mprealoperator/= (const int v)
 
mprealoperator<<= (const unsigned long int u)
 
mprealoperator<<= (const unsigned int u)
 
mprealoperator<<= (const long int u)
 
mprealoperator<<= (const int u)
 
mprealoperator>>= (const unsigned long int u)
 
mprealoperator>>= (const unsigned int u)
 
mprealoperator>>= (const long int u)
 
mprealoperator>>= (const int u)
 
 operator long double () const
 
 operator double () const
 
 operator float () const
 
 operator unsigned long () const
 
 operator unsigned int () const
 
 operator long () const
 
 operator std::string () const
 
 operator mpfr_ptr ()
 
mp_prec_t get_prec () const
 
void set_prec (mp_prec_t prec, mp_rnd_t rnd_mode=default_rnd)
 
void set_inf (int sign=+1)
 
void set_nan ()
 
void set_sign (int sign, mp_rnd_t rnd_mode=default_rnd)
 
mp_exp_t get_exp ()
 
int set_exp (mp_exp_t e)
 
int check_range (int t, mp_rnd_t rnd_mode=default_rnd)
 
int subnormalize (int t, mp_rnd_t rnd_mode=default_rnd)
 
bool fits_in_bits (double x, int n)
 
std::string to_string (size_t n=0, int b=default_base, mp_rnd_t mode=default_rnd) const
 

Static Public Member Functions

static void set_default_prec (mp_prec_t prec)
 
static mp_prec_t get_default_prec ()
 
static void set_default_base (int base)
 
static int get_default_base ()
 
static void set_double_bits (int dbits)
 
static int get_double_bits ()
 
static void set_default_rnd (mp_rnd_t rnd_mode)
 
static mp_rnd_t get_default_rnd ()
 
static mp_exp_t get_emin (void)
 
static mp_exp_t get_emax (void)
 
static mp_exp_t get_emin_min (void)
 
static mp_exp_t get_emin_max (void)
 
static mp_exp_t get_emax_min (void)
 
static mp_exp_t get_emax_max (void)
 
static int set_emin (mp_exp_t exp)
 
static int set_emax (mp_exp_t exp)
 

Static Public Attributes

static mp_rnd_t default_rnd = mpfr_get_default_rounding_mode()
 
static mp_prec_t default_prec = mpfr_get_default_prec()
 
static int default_base = 10
 
static int double_bits = -1
 

Friends

const mpreal operator- (const unsigned long int b, const mpreal &a)
 
const mpreal operator- (const unsigned int b, const mpreal &a)
 
const mpreal operator- (const long int b, const mpreal &a)
 
const mpreal operator- (const int b, const mpreal &a)
 
const mpreal operator- (const double b, const mpreal &a)
 
const mpreal operator/ (const unsigned long int b, const mpreal &a)
 
const mpreal operator/ (const unsigned int b, const mpreal &a)
 
const mpreal operator/ (const long int b, const mpreal &a)
 
const mpreal operator/ (const int b, const mpreal &a)
 
const mpreal operator/ (const double b, const mpreal &a)
 
bool operator> (const mpreal &a, const mpreal &b)
 
bool operator>= (const mpreal &a, const mpreal &b)
 
bool operator< (const mpreal &a, const mpreal &b)
 
bool operator<= (const mpreal &a, const mpreal &b)
 
bool operator== (const mpreal &a, const mpreal &b)
 
bool operator!= (const mpreal &a, const mpreal &b)
 
const mpreal sqr (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sqrt (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sqrt (const unsigned long int v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal cbrt (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal root (const mpreal &v, unsigned long int k, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const mpreal &a, const mpreal &b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const mpreal &a, const mpz_t b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const mpreal &a, const unsigned long int b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const mpreal &a, const long int b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const unsigned long int a, const mpreal &b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal pow (const unsigned long int a, const unsigned long int b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal fabs (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal abs (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal dim (const mpreal &a, const mpreal &b, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal mul_2ui (const mpreal &v, unsigned long int k, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal mul_2si (const mpreal &v, long int k, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal div_2ui (const mpreal &v, unsigned long int k, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal div_2si (const mpreal &v, long int k, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
int cmpabs (const mpreal &a, const mpreal &b)
 
const mpreal log (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal log2 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal log10 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal exp (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal exp2 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal exp10 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal cos (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sin (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal tan (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sec (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal csc (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal cot (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
int sin_cos (mpreal &s, mpreal &c, const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal acos (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal asin (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal atan (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal atan2 (const mpreal &y, const mpreal &x, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal cosh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sinh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal tanh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sech (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal csch (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal coth (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal acosh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal asinh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal atanh (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal fac_ui (unsigned long int v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal log1p (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal expm1 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal eint (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal gamma (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal lngamma (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal lgamma (const mpreal &v, int *signp, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal zeta (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal erf (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal erfc (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _j0 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _j1 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _jn (long n, const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _y0 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _y1 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal _yn (long n, const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal fma (const mpreal &v1, const mpreal &v2, const mpreal &v3, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal fms (const mpreal &v1, const mpreal &v2, const mpreal &v3, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal agm (const mpreal &v1, const mpreal &v2, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal hypot (const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal sum (const mpreal tab[], unsigned long int n, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
int sgn (const mpreal &v)
 
int sinh_cosh (mpreal &s, mpreal &c, const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal li2 (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal fmod (const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal rec_sqrt (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal frexp (const mpreal &v, mp_exp_t *exp)
 
const mpreal ldexp (const mpreal &v, mp_exp_t exp)
 
const mpreal modf (const mpreal &v, mpreal &n)
 
const mpreal const_log2 (mp_prec_t prec=mpreal::default_prec, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal const_pi (mp_prec_t prec=mpreal::default_prec, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal const_euler (mp_prec_t prec=mpreal::default_prec, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal const_catalan (mp_prec_t prec=mpreal::default_prec, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
std::ostream & operator<< (std::ostream &os, const mpreal &v)
 
std::istream & operator>> (std::istream &is, mpreal &v)
 
const mpreal rint (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal ceil (const mpreal &v)
 
const mpreal floor (const mpreal &v)
 
const mpreal round (const mpreal &v)
 
const mpreal trunc (const mpreal &v)
 
const mpreal rint_ceil (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal rint_floor (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal rint_round (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal rint_trunc (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal frac (const mpreal &v, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal remainder (const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal remquo (long *q, const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::default_rnd)
 
const mpreal nexttoward (const mpreal &x, const mpreal &y)
 
const mpreal nextabove (const mpreal &x)
 
const mpreal nextbelow (const mpreal &x)
 
const mpreal urandomb (gmp_randstate_t &state)
 
const mpreal random2 (mp_size_t size, mp_exp_t exp)
 
bool _isnan (const mpreal &v)
 
bool _isinf (const mpreal &v)
 
bool _isnum (const mpreal &v)
 
bool _iszero (const mpreal &v)
 
bool _isint (const mpreal &v)
 
void swap (mpreal &x, mpreal &y)
 
const mpreal max (const mpreal &x, const mpreal &y)
 
const mpreal min (const mpreal &x, const mpreal &y)
 

The documentation for this class was generated from the following files:
  • /home/chris/Development/Release/NanoStructures/utils/mpreal.h
  • /home/chris/Development/Release/NanoStructures/utils/mpreal.cpp