Chroma::bigfloat Class Reference
[HMC monomials]

Bigfloat. More...

#include <bigfloat.h>

List of all members.

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 23 of file bigfloat.h.


Constructor & Destructor Documentation

Chroma::bigfloat::bigfloat (  )  [inline]

Definition at line 26 of file bigfloat.h.

References x.

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

Definition at line 27 of file bigfloat.h.

References x.

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

Definition at line 28 of file bigfloat.h.

References x.

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

Definition at line 29 of file bigfloat.h.

References x.

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

Definition at line 30 of file bigfloat.h.

References x.

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

Definition at line 31 of file bigfloat.h.

References x.

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

Definition at line 32 of file bigfloat.h.

References x.

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

Definition at line 33 of file bigfloat.h.

References x.

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

Definition at line 34 of file bigfloat.h.

References x.

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

Definition at line 35 of file bigfloat.h.

References x.


Member Function Documentation

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

Definition at line 49 of file bigfloat.h.

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

Definition at line 47 of file bigfloat.h.

References x.

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

Definition at line 88 of file bigfloat.h.

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

Definition at line 36 of file bigfloat.h.

References x.

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

Definition at line 86 of file bigfloat.h.

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

Definition at line 87 of file bigfloat.h.

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

Definition at line 89 of file bigfloat.h.

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

Definition at line 76 of file bigfloat.h.

References x.

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

Definition at line 71 of file bigfloat.h.

References x.

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

Definition at line 66 of file bigfloat.h.

References x.

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

Definition at line 61 of file bigfloat.h.

References x.

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

Definition at line 56 of file bigfloat.h.

References x.

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

Definition at line 51 of file bigfloat.h.

References x.

size_t Chroma::bigfloat::read ( void   ) 

static void Chroma::bigfloat::setDefaultPrecision ( unsigned long  dprec  )  [inline, static]

Definition at line 37 of file bigfloat.h.

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

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

Definition at line 42 of file bigfloat.h.

References x.

size_t Chroma::bigfloat::write ( void   ) 


Friends And Related Function Documentation

bigfloat abs_bf ( const bigfloat x  )  [friend]

Definition at line 169 of file bigfloat.h.

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

Definition at line 133 of file bigfloat.h.

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

Definition at line 127 of file bigfloat.h.

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

Definition at line 97 of file bigfloat.h.

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

Definition at line 91 of file bigfloat.h.

bigfloat operator- ( const bigfloat x  )  [friend]

Definition at line 121 of file bigfloat.h.

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

Definition at line 115 of file bigfloat.h.

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

Definition at line 109 of file bigfloat.h.

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

Definition at line 103 of file bigfloat.h.

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

Definition at line 151 of file bigfloat.h.

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

Definition at line 145 of file bigfloat.h.

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

Definition at line 139 of file bigfloat.h.

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

Definition at line 190 of file bigfloat.h.

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

Definition at line 183 of file bigfloat.h.

bigfloat pow_bf ( const bigfloat a,
long  power 
) [friend]

Definition at line 175 of file bigfloat.h.

bigfloat& random ( void   )  [friend]

int sgn ( const bigfloat  )  [friend]

bigfloat sqrt_bf ( const unsigned long  x  )  [friend]

Definition at line 163 of file bigfloat.h.

bigfloat sqrt_bf ( const bigfloat x  )  [friend]

Definition at line 157 of file bigfloat.h.


Member Data Documentation

mpf_t Chroma::bigfloat::x [private]

Definition at line 205 of file bigfloat.h.

Referenced by bigfloat(), getPrecision(), operator const double(), operator=(), setPrecision(), and ~bigfloat().


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:40:24 2009 for CHROMA by  doxygen 1.4.7