Grid 0.7.0
bigfloat Class Reference

#include <bigfloat.h>

Public Member Functions

 bigfloat ()
 bigfloat (const bigfloat &y)
 bigfloat (const unsigned long u)
 bigfloat (const long i)
 bigfloat (const int i)
 bigfloat (const float d)
 bigfloat (const double d)
 bigfloat (const char *str)
 ~bigfloat (void)
 operator double (void) const
void setPrecision (unsigned long dprec)
unsigned long getPrecision (void) const
unsigned long getDefaultPrecision (void) const
bigfloatoperator= (const bigfloat &y)
bigfloatoperator= (const unsigned long y)
bigfloatoperator= (const signed long y)
bigfloatoperator= (const float y)
bigfloatoperator= (const double y)
size_t write (void)
size_t read (void)
bigfloatoperator+= (const bigfloat &y)
bigfloatoperator-= (const bigfloat &y)
bigfloatoperator*= (const bigfloat &y)
bigfloatoperator/= (const bigfloat &y)
 bigfloat ()
 bigfloat (const bigfloat &y)
 bigfloat (const unsigned long u)
 bigfloat (const long i)
 bigfloat (const int i)
 bigfloat (const float d)
 bigfloat (const double d)
 bigfloat (const char *str)
 ~bigfloat (void)
 operator double (void) const
void setPrecision (unsigned long dprec)
unsigned long getPrecision (void) const
unsigned long getDefaultPrecision (void) const
bigfloatoperator= (const bigfloat &y)
bigfloatoperator= (const unsigned long y)
bigfloatoperator= (const signed long y)
bigfloatoperator= (const float y)
bigfloatoperator= (const double y)
size_t write (void)
size_t read (void)
bigfloatoperator+= (const bigfloat &y)
bigfloatoperator-= (const bigfloat &y)
bigfloatoperator*= (const bigfloat &y)
bigfloatoperator/= (const bigfloat &y)

Static Public Member Functions

static void setDefaultPrecision (unsigned long dprec)
static void setDefaultPrecision (unsigned long dprec)

Private Attributes

mpf_t x
mfloat x

Friends

bigfloat operator+ (const bigfloat &x, const bigfloat &y)
bigfloat operator+ (const bigfloat &x, const unsigned long y)
bigfloat operator- (const bigfloat &x, const bigfloat &y)
bigfloat operator- (const unsigned long x, const bigfloat &y)
bigfloat operator- (const bigfloat &x, const unsigned long y)
bigfloat operator- (const bigfloat &x)
bigfloat operator* (const bigfloat &x, const bigfloat &y)
bigfloat operator* (const bigfloat &x, const unsigned long y)
bigfloat operator/ (const bigfloat &x, const bigfloat &y)
bigfloat operator/ (const unsigned long x, const bigfloat &y)
bigfloat operator/ (const bigfloat &x, const unsigned long y)
bigfloat sqrt_bf (const bigfloat &x)
bigfloat sqrt_bf (const unsigned long x)
bigfloat abs_bf (const bigfloat &x)
bigfloat pow_bf (const bigfloat &a, long power)
bigfloat pow_bf (const bigfloat &a, bigfloat &power)
bigfloat exp_bf (const bigfloat &a)
int operator> (const bigfloat &x, const bigfloat &y)
int operator< (const bigfloat &x, const bigfloat &y)
int sgn (const bigfloat &)
bigfloat operator+ (const bigfloat &x, const bigfloat &y)
bigfloat operator+ (const bigfloat &x, const unsigned long y)
bigfloat operator- (const bigfloat &x, const bigfloat &y)
bigfloat operator- (const unsigned long x, const bigfloat &y)
bigfloat operator- (const bigfloat &x, const unsigned long y)
bigfloat operator- (const bigfloat &x)
bigfloat operator* (const bigfloat &x, const bigfloat &y)
bigfloat operator* (const bigfloat &x, const unsigned long y)
bigfloat operator/ (const bigfloat &x, const bigfloat &y)
bigfloat operator/ (const unsigned long x, const bigfloat &y)
bigfloat operator/ (const bigfloat &x, const unsigned long y)
bigfloat sqrt_bf (const bigfloat &x)
bigfloat sqrt_bf (const unsigned long x)
bigfloat abs_bf (const bigfloat &x)
bigfloat pow_bf (const bigfloat &a, long power)
bigfloat pow_bf (const bigfloat &a, bigfloat &power)
bigfloat exp_bf (const bigfloat &a)
int operator> (const bigfloat &x, const bigfloat &y)
int operator< (const bigfloat &x, const bigfloat &y)
int sgn (const bigfloat &x)

Detailed Description

Definition at line 19 of file bigfloat.h.

Constructor & Destructor Documentation

◆ bigfloat() [1/16]

◆ bigfloat() [2/16]

bigfloat::bigfloat ( const bigfloat & y)
inline

Definition at line 28 of file bigfloat.h.

References bigfloat(), and x.

◆ bigfloat() [3/16]

bigfloat::bigfloat ( const unsigned long u)
inline

Definition at line 29 of file bigfloat.h.

References x.

◆ bigfloat() [4/16]

bigfloat::bigfloat ( const long i)
inline

Definition at line 30 of file bigfloat.h.

References x.

◆ bigfloat() [5/16]

bigfloat::bigfloat ( const int i)
inline

Definition at line 31 of file bigfloat.h.

References x.

◆ bigfloat() [6/16]

bigfloat::bigfloat ( const float d)
inline

Definition at line 32 of file bigfloat.h.

References x.

◆ bigfloat() [7/16]

bigfloat::bigfloat ( const double d)
inline

Definition at line 33 of file bigfloat.h.

References x.

◆ bigfloat() [8/16]

bigfloat::bigfloat ( const char * str)
inline

Definition at line 34 of file bigfloat.h.

References x.

◆ ~bigfloat() [1/2]

bigfloat::~bigfloat ( void )
inline

Definition at line 35 of file bigfloat.h.

References x.

◆ bigfloat() [9/16]

bigfloat::bigfloat ( )
inline

Definition at line 42 of file bigfloat_double.h.

◆ bigfloat() [10/16]

bigfloat::bigfloat ( const bigfloat & y)
inline

Definition at line 43 of file bigfloat_double.h.

References bigfloat(), and x.

◆ bigfloat() [11/16]

bigfloat::bigfloat ( const unsigned long u)
inline

Definition at line 44 of file bigfloat_double.h.

References x.

◆ bigfloat() [12/16]

bigfloat::bigfloat ( const long i)
inline

Definition at line 45 of file bigfloat_double.h.

References x.

◆ bigfloat() [13/16]

bigfloat::bigfloat ( const int i)
inline

Definition at line 46 of file bigfloat_double.h.

References x.

◆ bigfloat() [14/16]

bigfloat::bigfloat ( const float d)
inline

Definition at line 47 of file bigfloat_double.h.

References x.

◆ bigfloat() [15/16]

bigfloat::bigfloat ( const double d)
inline

Definition at line 48 of file bigfloat_double.h.

References x.

◆ bigfloat() [16/16]

bigfloat::bigfloat ( const char * str)
inline

Definition at line 49 of file bigfloat_double.h.

References x.

◆ ~bigfloat() [2/2]

bigfloat::~bigfloat ( void )
inline

Definition at line 50 of file bigfloat_double.h.

Member Function Documentation

◆ operator double() [1/2]

bigfloat::operator double ( void ) const
inline

Definition at line 36 of file bigfloat.h.

References x.

◆ setDefaultPrecision() [1/2]

void bigfloat::setDefaultPrecision ( unsigned long dprec)
inlinestatic

Definition at line 37 of file bigfloat.h.

Referenced by AlgRemez::AlgRemez(), and AlgRemezGeneral::AlgRemezGeneral().

◆ setPrecision() [1/2]

void bigfloat::setPrecision ( unsigned long dprec)
inline

Definition at line 42 of file bigfloat.h.

References x.

◆ getPrecision() [1/2]

unsigned long bigfloat::getPrecision ( void ) const
inline

Definition at line 47 of file bigfloat.h.

References x.

◆ getDefaultPrecision() [1/2]

unsigned long bigfloat::getDefaultPrecision ( void ) const
inline

Definition at line 49 of file bigfloat.h.

◆ operator=() [1/10]

bigfloat & bigfloat::operator= ( const bigfloat & y)
inline

Definition at line 51 of file bigfloat.h.

References bigfloat(), and x.

◆ operator=() [2/10]

bigfloat & bigfloat::operator= ( const unsigned long y)
inline

Definition at line 56 of file bigfloat.h.

References bigfloat(), and x.

◆ operator=() [3/10]

bigfloat & bigfloat::operator= ( const signed long y)
inline

Definition at line 61 of file bigfloat.h.

References bigfloat(), and x.

◆ operator=() [4/10]

bigfloat & bigfloat::operator= ( const float y)
inline

Definition at line 66 of file bigfloat.h.

References bigfloat(), and x.

◆ operator=() [5/10]

bigfloat & bigfloat::operator= ( const double y)
inline

Definition at line 71 of file bigfloat.h.

References bigfloat(), and x.

◆ write() [1/2]

size_t bigfloat::write ( void )

◆ read() [1/2]

size_t bigfloat::read ( void )

◆ operator+=() [1/2]

bigfloat & bigfloat::operator+= ( const bigfloat & y)
inline

Definition at line 81 of file bigfloat.h.

References bigfloat().

◆ operator-=() [1/2]

bigfloat & bigfloat::operator-= ( const bigfloat & y)
inline

Definition at line 82 of file bigfloat.h.

References bigfloat().

◆ operator*=() [1/2]

bigfloat & bigfloat::operator*= ( const bigfloat & y)
inline

Definition at line 83 of file bigfloat.h.

References bigfloat().

◆ operator/=() [1/2]

bigfloat & bigfloat::operator/= ( const bigfloat & y)
inline

Definition at line 84 of file bigfloat.h.

References bigfloat().

◆ operator double() [2/2]

bigfloat::operator double ( void ) const
inline

Definition at line 51 of file bigfloat_double.h.

References x.

◆ setDefaultPrecision() [2/2]

void bigfloat::setDefaultPrecision ( unsigned long dprec)
inlinestatic

Definition at line 52 of file bigfloat_double.h.

◆ setPrecision() [2/2]

void bigfloat::setPrecision ( unsigned long dprec)
inline

Definition at line 55 of file bigfloat_double.h.

◆ getPrecision() [2/2]

unsigned long bigfloat::getPrecision ( void ) const
inline

Definition at line 58 of file bigfloat_double.h.

◆ getDefaultPrecision() [2/2]

unsigned long bigfloat::getDefaultPrecision ( void ) const
inline

Definition at line 59 of file bigfloat_double.h.

◆ operator=() [6/10]

bigfloat & bigfloat::operator= ( const bigfloat & y)
inline

Definition at line 61 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator=() [7/10]

bigfloat & bigfloat::operator= ( const unsigned long y)
inline

Definition at line 62 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator=() [8/10]

bigfloat & bigfloat::operator= ( const signed long y)
inline

Definition at line 63 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator=() [9/10]

bigfloat & bigfloat::operator= ( const float y)
inline

Definition at line 64 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator=() [10/10]

bigfloat & bigfloat::operator= ( const double y)
inline

Definition at line 65 of file bigfloat_double.h.

References bigfloat(), and x.

◆ write() [2/2]

size_t bigfloat::write ( void )

◆ read() [2/2]

size_t bigfloat::read ( void )

◆ operator+=() [2/2]

bigfloat & bigfloat::operator+= ( const bigfloat & y)
inline

Definition at line 72 of file bigfloat_double.h.

References bigfloat().

◆ operator-=() [2/2]

bigfloat & bigfloat::operator-= ( const bigfloat & y)
inline

Definition at line 73 of file bigfloat_double.h.

References bigfloat().

◆ operator*=() [2/2]

bigfloat & bigfloat::operator*= ( const bigfloat & y)
inline

Definition at line 74 of file bigfloat_double.h.

References bigfloat().

◆ operator/=() [2/2]

bigfloat & bigfloat::operator/= ( const bigfloat & y)
inline

Definition at line 75 of file bigfloat_double.h.

References bigfloat().

◆ operator+ [1/4]

bigfloat operator+ ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 86 of file bigfloat.h.

References bigfloat(), and x.

◆ operator+ [2/4]

bigfloat operator+ ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 92 of file bigfloat.h.

References bigfloat(), and x.

◆ operator- [1/8]

bigfloat operator- ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 98 of file bigfloat.h.

References bigfloat(), and x.

◆ operator- [2/8]

bigfloat operator- ( const unsigned long x,
const bigfloat & y )
friend

Definition at line 104 of file bigfloat.h.

References bigfloat(), and x.

◆ operator- [3/8]

bigfloat operator- ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 110 of file bigfloat.h.

References bigfloat(), and x.

◆ operator- [4/8]

bigfloat operator- ( const bigfloat & x)
friend

Definition at line 116 of file bigfloat.h.

References bigfloat(), and x.

◆ operator* [1/4]

bigfloat operator* ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 122 of file bigfloat.h.

References bigfloat(), and x.

◆ operator* [2/4]

bigfloat operator* ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 128 of file bigfloat.h.

References bigfloat(), and x.

◆ operator/ [1/6]

bigfloat operator/ ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 134 of file bigfloat.h.

References bigfloat(), and x.

◆ operator/ [2/6]

bigfloat operator/ ( const unsigned long x,
const bigfloat & y )
friend

Definition at line 140 of file bigfloat.h.

References bigfloat(), and x.

◆ operator/ [3/6]

bigfloat operator/ ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 146 of file bigfloat.h.

References bigfloat(), and x.

◆ sqrt_bf [1/4]

bigfloat sqrt_bf ( const bigfloat & x)
friend

Definition at line 152 of file bigfloat.h.

References bigfloat(), and x.

Referenced by sqrt_bf.

◆ sqrt_bf [2/4]

bigfloat sqrt_bf ( const unsigned long x)
friend

Definition at line 158 of file bigfloat.h.

References bigfloat(), and x.

◆ abs_bf [1/2]

bigfloat abs_bf ( const bigfloat & x)
friend

Definition at line 164 of file bigfloat.h.

References bigfloat(), and x.

◆ pow_bf [1/4]

bigfloat pow_bf ( const bigfloat & a,
long power )
friend

Definition at line 170 of file bigfloat.h.

References bigfloat(), and x.

◆ pow_bf [2/4]

bigfloat pow_bf ( const bigfloat & a,
bigfloat & power )
friend

Definition at line 176 of file bigfloat.h.

References bigfloat(), and x.

◆ exp_bf [1/2]

bigfloat exp_bf ( const bigfloat & a)
friend

Definition at line 182 of file bigfloat.h.

References bigfloat(), and x.

◆ operator> [1/2]

int operator> ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 190 of file bigfloat.h.

References bigfloat(), and x.

◆ operator< [1/2]

int operator< ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 197 of file bigfloat.h.

References bigfloat(), and x.

◆ sgn [1/2]

int sgn ( const bigfloat & )
friend

References bigfloat().

◆ operator+ [3/4]

bigfloat operator+ ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 77 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator+ [4/4]

bigfloat operator+ ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 83 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator- [5/8]

bigfloat operator- ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 89 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator- [6/8]

bigfloat operator- ( const unsigned long x,
const bigfloat & y )
friend

Definition at line 95 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator- [7/8]

bigfloat operator- ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 100 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator- [8/8]

bigfloat operator- ( const bigfloat & x)
friend

Definition at line 105 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator* [3/4]

bigfloat operator* ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 111 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator* [4/4]

bigfloat operator* ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 117 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator/ [4/6]

bigfloat operator/ ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 123 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator/ [5/6]

bigfloat operator/ ( const unsigned long x,
const bigfloat & y )
friend

Definition at line 129 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator/ [6/6]

bigfloat operator/ ( const bigfloat & x,
const unsigned long y )
friend

Definition at line 134 of file bigfloat_double.h.

References bigfloat(), and x.

◆ sqrt_bf [3/4]

bigfloat sqrt_bf ( const bigfloat & x)
friend

Definition at line 139 of file bigfloat_double.h.

References bigfloat(), sqrt(), and x.

◆ sqrt_bf [4/4]

bigfloat sqrt_bf ( const unsigned long x)
friend

Definition at line 145 of file bigfloat_double.h.

References bigfloat(), sqrt_bf, and x.

◆ abs_bf [2/2]

bigfloat abs_bf ( const bigfloat & x)
friend

Definition at line 150 of file bigfloat_double.h.

References bigfloat(), and x.

◆ pow_bf [3/4]

bigfloat pow_bf ( const bigfloat & a,
long power )
friend

Definition at line 156 of file bigfloat_double.h.

References bigfloat(), pow(), and x.

◆ pow_bf [4/4]

bigfloat pow_bf ( const bigfloat & a,
bigfloat & power )
friend

Definition at line 162 of file bigfloat_double.h.

References bigfloat(), pow(), and x.

◆ exp_bf [2/2]

bigfloat exp_bf ( const bigfloat & a)
friend

Definition at line 168 of file bigfloat_double.h.

References bigfloat(), exp(), and x.

◆ operator> [2/2]

int operator> ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 175 of file bigfloat_double.h.

References bigfloat(), and x.

◆ operator< [2/2]

int operator< ( const bigfloat & x,
const bigfloat & y )
friend

Definition at line 179 of file bigfloat_double.h.

References bigfloat(), and x.

◆ sgn [2/2]

int sgn ( const bigfloat & x)
friend

Definition at line 183 of file bigfloat_double.h.

References bigfloat(), and x.

Field Documentation

◆ x [1/2]

◆ x [2/2]

mfloat bigfloat::x
private

Definition at line 38 of file bigfloat_double.h.


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