Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cps::bigfloat Class Reference

Arbitrary precision arithmetic. 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 float d)
 bigfloat (const double d)
 ~bigfloat (void)
 operator const Float (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

void setDefaultPrecision (unsigned long dprec)

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 &)


Detailed Description

Arbitrary precision arithmetic.

This is used by the AlgRemez class It is a wrapper around the GNU Multiprecision Library (GMP).GMP library. and therefore can only be used if the CPS is built with GMP. This is achieved at CPS configure time by using the option --enable-gmp=GMP_PATH with the configure script, where GMP_PATH is the directory where GMP has been installed.

Definition at line 37 of file bigfloat.h.


Constructor & Destructor Documentation

cps::bigfloat::bigfloat  )  [inline]
 

Definition at line 45 of file bigfloat.h.

cps::bigfloat::bigfloat const bigfloat y  )  [inline]
 

Definition at line 46 of file bigfloat.h.

References x.

cps::bigfloat::bigfloat const unsigned long  u  )  [inline]
 

Definition at line 47 of file bigfloat.h.

cps::bigfloat::bigfloat const long  i  )  [inline]
 

Definition at line 48 of file bigfloat.h.

cps::bigfloat::bigfloat const int  i  )  [inline]
 

Definition at line 49 of file bigfloat.h.

cps::bigfloat::bigfloat const float  d  )  [inline]
 

Definition at line 50 of file bigfloat.h.

cps::bigfloat::bigfloat const double  d  )  [inline]
 

Definition at line 51 of file bigfloat.h.

cps::bigfloat::~bigfloat void   )  [inline]
 

Definition at line 52 of file bigfloat.h.


Member Function Documentation

unsigned long cps::bigfloat::getDefaultPrecision void   )  const [inline]
 

Definition at line 66 of file bigfloat.h.

unsigned long cps::bigfloat::getPrecision void   )  const [inline]
 

Definition at line 64 of file bigfloat.h.

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

Definition at line 100 of file bigfloat.h.

cps::bigfloat::operator const Float void   )  const [inline]
 

Definition at line 53 of file bigfloat.h.

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

Definition at line 98 of file bigfloat.h.

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

Definition at line 99 of file bigfloat.h.

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

Definition at line 101 of file bigfloat.h.

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

Definition at line 88 of file bigfloat.h.

bigfloat& cps::bigfloat::operator= const float  y  )  [inline]
 

Definition at line 83 of file bigfloat.h.

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

Definition at line 78 of file bigfloat.h.

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

Definition at line 73 of file bigfloat.h.

bigfloat& cps::bigfloat::operator= const bigfloat y  )  [inline]
 

Definition at line 68 of file bigfloat.h.

References x.

size_t cps::bigfloat::read void   ) 
 

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

Definition at line 54 of file bigfloat.h.

void cps::bigfloat::setPrecision unsigned long  dprec  )  [inline]
 

Definition at line 59 of file bigfloat.h.

size_t cps::bigfloat::write void   ) 
 


Friends And Related Function Documentation

bigfloat abs_bf const bigfloat x  )  [friend]
 

Definition at line 181 of file bigfloat.h.

bigfloat operator * const bigfloat x,
const unsigned long  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.

bigfloat operator+ const bigfloat x,
const unsigned long  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  )  [friend]
 

Definition at line 133 of file bigfloat.h.

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

Definition at line 127 of file bigfloat.h.

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

Definition at line 121 of file bigfloat.h.

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

Definition at line 115 of file bigfloat.h.

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

Definition at line 163 of file bigfloat.h.

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

Definition at line 157 of file bigfloat.h.

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

Definition at line 151 of file bigfloat.h.

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

Definition at line 210 of file bigfloat.h.

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

Definition at line 203 of file bigfloat.h.

bigfloat pow_bf const bigfloat a,
long  power
[friend]
 

Definition at line 187 of file bigfloat.h.

int sgn const bigfloat  )  [friend]
 

bigfloat sqrt_bf const unsigned long  x  )  [friend]
 

Definition at line 175 of file bigfloat.h.

bigfloat sqrt_bf const bigfloat x  )  [friend]
 

Definition at line 169 of file bigfloat.h.


The documentation for this class was generated from the following file:
Generated on Sat Oct 10 14:11:58 2009 for Columbia Physics System by  doxygen 1.3.9.1