The Original CHomP Software
|
This class defines integer numbers with overflow control and with some specific properties of an Euclidean domain. More...
#include <integer.h>
Public Member Functions | |
integer & | operator= (int n) |
int | delta (void) const |
integer | normalized () const |
integer | operator- () const |
integer & | operator+= (const integer &n) |
integer & | operator*= (const integer &n) |
integer | operator+ (const integer &n) const |
integer | operator* (const integer &n) const |
integer | operator/ (const integer &n) const |
integer | operator% (const integer &n) const |
int | operator== (const integer &n) const |
Static Public Member Functions | |
static int | initialize (int n) |
static const char * | ringname () |
static const char * | ringsymbol () |
Static Protected Member Functions | |
static int | cut_down (int n) |
static int | is_prime (int n) |
static int | prime_number (int n) |
static unsigned | invert (unsigned n, unsigned q) |
Protected Attributes | |
numbertype | num |
Static Protected Attributes | |
static int | p |
Friends | |
std::ostream & | operator<< (std::ostream &out, const integer &n) |
bool | operator< (const integer &x, const integer &y) |
bool | operator> (const integer &x, const integer &y) |
This class defines integer numbers with overflow control and with some specific properties of an Euclidean domain.
Note that this class has very few features which are limited on purpose to optimize it for application in a chain complex class for homology computation.
|
inlinestaticprotected |
Definition at line 194 of file integer.h.
Referenced by operator=().
|
inline |
|
inlinestatic |
Definition at line 387 of file integer.h.
References p, and prime_number().
|
staticprotected |
Referenced by operator/().
|
staticprotected |
|
inline |
Definition at line 401 of file integer.h.
References num.
|
inline |
|
inline |
Definition at line 241 of file integer.h.
References cut_down(), num, and p.
|
inline |
|
staticprotected |
Referenced by initialize().
|
static |
|
static |
|
friend |
|
protected |
Definition at line 182 of file integer.h.
Referenced by cut_down(), delta(), normalized(), operator%(), operator*=(), operator+=(), operator-(), operator/(), operator=(), and operator==().
|
staticprotected |
Definition at line 179 of file integer.h.
Referenced by cut_down(), delta(), initialize(), operator%(), operator*=(), operator+=(), operator-(), operator/(), and operator=().