CHROMA
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members

Bigfloat. More...

#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 double d)
 
 bigfloat (const Real32 &d)
 
 bigfloat (const Real64 &d)
 
 bigfloat (const char *str)
 
 ~bigfloat (void)
 
 operator const 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 double y)
 
bigfloatoperator= (const Real32 &y)
 
bigfloatoperator= (const Real64 &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)
 

Private Attributes

mpf_t 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)
 
int operator> (const bigfloat &x, const bigfloat &y)
 
int operator< (const bigfloat &x, const bigfloat &y)
 
int sgn (const bigfloat &)
 
bigfloatrandom (void)
 

Detailed Description

Bigfloat.

Simple C++ wrapper for multiprecision datatype used for Remez algorithm

Definition at line 22 of file bigfloat.h.

Constructor & Destructor Documentation

◆ bigfloat() [1/9]

Chroma::bigfloat::bigfloat ( )
inline

Definition at line 25 of file bigfloat.h.

References x.

◆ bigfloat() [2/9]

Chroma::bigfloat::bigfloat ( const bigfloat y)
inline

Definition at line 26 of file bigfloat.h.

References x, and y.

◆ bigfloat() [3/9]

Chroma::bigfloat::bigfloat ( const unsigned long  u)
inline

Definition at line 27 of file bigfloat.h.

References Chroma::u, and x.

◆ bigfloat() [4/9]

Chroma::bigfloat::bigfloat ( const long  i)
inline

Definition at line 28 of file bigfloat.h.

References Chroma::i, and x.

◆ bigfloat() [5/9]

Chroma::bigfloat::bigfloat ( const int  i)
inline

Definition at line 29 of file bigfloat.h.

References Chroma::i, and x.

◆ bigfloat() [6/9]

Chroma::bigfloat::bigfloat ( const double  d)
inline

Definition at line 30 of file bigfloat.h.

References Chroma::d, and x.

◆ bigfloat() [7/9]

Chroma::bigfloat::bigfloat ( const Real32 &  d)
inline

Definition at line 31 of file bigfloat.h.

References Chroma::d, and x.

◆ bigfloat() [8/9]

Chroma::bigfloat::bigfloat ( const Real64 &  d)
inline

Definition at line 32 of file bigfloat.h.

References Chroma::d, and x.

◆ bigfloat() [9/9]

Chroma::bigfloat::bigfloat ( const char *  str)
inline

Definition at line 33 of file bigfloat.h.

References x.

◆ ~bigfloat()

Chroma::bigfloat::~bigfloat ( void  )
inline

Definition at line 34 of file bigfloat.h.

References x.

Member Function Documentation

◆ getDefaultPrecision()

unsigned long Chroma::bigfloat::getDefaultPrecision ( void  ) const
inline

Definition at line 48 of file bigfloat.h.

◆ getPrecision()

unsigned long Chroma::bigfloat::getPrecision ( void  ) const
inline

Definition at line 46 of file bigfloat.h.

References x.

◆ operator const double()

Chroma::bigfloat::operator const double ( void  ) const
inline

Definition at line 35 of file bigfloat.h.

References x.

◆ operator*=()

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

Definition at line 87 of file bigfloat.h.

References y.

◆ operator+=()

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

Definition at line 85 of file bigfloat.h.

References y.

◆ operator-=()

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

Definition at line 86 of file bigfloat.h.

References y.

◆ operator/=()

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

Definition at line 88 of file bigfloat.h.

References y.

◆ operator=() [1/6]

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

Definition at line 50 of file bigfloat.h.

References x, and y.

◆ operator=() [2/6]

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

Definition at line 65 of file bigfloat.h.

References x, and y.

◆ operator=() [3/6]

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

Definition at line 70 of file bigfloat.h.

References x, and y.

◆ operator=() [4/6]

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

Definition at line 75 of file bigfloat.h.

References x, and y.

◆ operator=() [5/6]

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

Definition at line 60 of file bigfloat.h.

References x, and y.

◆ operator=() [6/6]

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

Definition at line 55 of file bigfloat.h.

References x, and y.

◆ read()

size_t Chroma::bigfloat::read ( void  )

◆ setDefaultPrecision()

static void Chroma::bigfloat::setDefaultPrecision ( unsigned long  dprec)
inlinestatic

Definition at line 36 of file bigfloat.h.

Referenced by Chroma::RemezGMP::RemezGMP().

◆ setPrecision()

void Chroma::bigfloat::setPrecision ( unsigned long  dprec)
inline

Definition at line 41 of file bigfloat.h.

References x.

◆ write()

size_t Chroma::bigfloat::write ( void  )

Friends And Related Function Documentation

◆ abs_bf

bigfloat abs_bf ( const bigfloat x)
friend

Definition at line 168 of file bigfloat.h.

◆ operator* [1/2]

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

Definition at line 126 of file bigfloat.h.

◆ operator* [2/2]

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

Definition at line 132 of file bigfloat.h.

◆ operator+ [1/2]

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

Definition at line 90 of file bigfloat.h.

◆ operator+ [2/2]

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

Definition at line 96 of file bigfloat.h.

◆ operator- [1/4]

bigfloat operator- ( const bigfloat x)
friend

Definition at line 120 of file bigfloat.h.

◆ operator- [2/4]

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

Definition at line 102 of file bigfloat.h.

◆ operator- [3/4]

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

Definition at line 114 of file bigfloat.h.

◆ operator- [4/4]

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

Definition at line 108 of file bigfloat.h.

◆ operator/ [1/3]

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

Definition at line 138 of file bigfloat.h.

◆ operator/ [2/3]

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

Definition at line 150 of file bigfloat.h.

◆ operator/ [3/3]

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

Definition at line 144 of file bigfloat.h.

◆ operator<

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

Definition at line 189 of file bigfloat.h.

◆ operator>

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

Definition at line 182 of file bigfloat.h.

◆ pow_bf

bigfloat pow_bf ( const bigfloat a,
long  power 
)
friend

Definition at line 174 of file bigfloat.h.

◆ random

bigfloat& random ( void  )
friend

◆ sgn

int sgn ( const bigfloat )
friend

◆ sqrt_bf [1/2]

bigfloat sqrt_bf ( const bigfloat x)
friend

Definition at line 156 of file bigfloat.h.

◆ sqrt_bf [2/2]

bigfloat sqrt_bf ( const unsigned long  x)
friend

Definition at line 162 of file bigfloat.h.

Member Data Documentation

◆ x

mpf_t Chroma::bigfloat::x
private

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