bliss: Source Code Documentation  0.73 (Debian 0.73-5)
Public Member Functions | List of all members
bliss::BigNum Class Reference

A very simple class for big integers (or approximation of them). More...

#include <bignum.hh>

Public Member Functions

 BigNum ()
 
void assign (const int n)
 
void multiply (const int n)
 
size_t print (FILE *const fp) const
 

Detailed Description

A very simple class for big integers (or approximation of them).

If the compile time flag BLISS_USE_GMP is set, then the GNU Multiple Precision Arithmetic library (GMP) is used to obtain arbitrary precision, otherwise "long double" is used to approximate big integers.

Constructor & Destructor Documentation

◆ BigNum()

bliss::BigNum::BigNum ( )
inline

Create a new big number and set it to zero.

Member Function Documentation

◆ assign()

void bliss::BigNum::assign ( const int  n)
inline

Set the number to n.

◆ multiply()

void bliss::BigNum::multiply ( const int  n)
inline

Multiply the number with n.

◆ print()

size_t bliss::BigNum::print ( FILE *const  fp) const
inline

Print the number in the file stream fp.


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