Classes | Namespaces | Typedefs | Functions

integer.h File Reference

This file defines a class "integer" which represents the ring of integers or the field of integers modulo a prime number "p" as an Euclidean domain, with some extra features which are required by the homology software. More...

#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include <iostream>

Go to the source code of this file.

Classes

class  chomp::homology::primeint
 This is a simple class which is a wrapper for computing the smallest prime number greater or equal to the given integer. More...
class  chomp::homology::integer
 This class defines integer numbers with overflow control and with some specific properties of an Euclidean domain. More...

Namespaces

namespace  chomp
 

This namespace contains the entire CHomP library interface.


namespace  chomp::homology
 

This namespace contains the core of the homology computation procedures and related classes and templates contained in the CHomP C++ library.


Typedefs

typedef signed short chomp::homology::numbertype
 The type of number used to store the value of an object of type "integer".

Functions

std::ostream & chomp::homology::operator<< (std::ostream &out, const primeint &p)
 Writes an object of the type "primeint" to an output stream.
std::istream & chomp::homology::operator>> (std::istream &in, primeint &p)
 Reads a prime number from an input stream.
std::ostream & chomp::homology::operator<< (std::ostream &out, const integer &n)
std::istream & chomp::homology::operator>> (std::istream &in, integer &n)
int chomp::homology::operator!= (const integer &n, const integer &m)
int chomp::homology::operator== (const integer &n, int m)
int chomp::homology::operator!= (const integer &n, int m)
integer chomp::homology::operator- (const integer &n, const integer &m)
bool chomp::homology::operator< (const integer &x, const integer &y)
bool chomp::homology::operator> (const integer &x, const integer &y)

Detailed Description

This file defines a class "integer" which represents the ring of integers or the field of integers modulo a prime number "p" as an Euclidean domain, with some extra features which are required by the homology software.

Author:
Pawel Pilarczyk

Definition in file integer.h.