Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ModularBase Class Template Reference

#include <modular.h>

Inheritance diagram for ModularBase:

Modular List of all members.

template<class _Element>
class LinBox::ModularBase< _Element >


Public Types

typedef _Element Element

Public Methods

ModularBase
 ModularBase (void)
 ModularBase (unsigned long modulus)
 ModularBase (const integer &modulus)
 ModularBase (const ModularBase< Element > &F)
integer & convert (integer &x, const Element &y) const
double & convert (double &x, const Element &y) const
Element & assign (Element &x, const Element &y) const
integer & cardinality (integer &c) const
integer & characteristic (integer &c) const
Object Management bool areEqual (const Element &x, const Element &y) const
bool isZero (const Element &x) const
bool isOne (const Element &x) const
Arithmetic Operations std::ostream & write (std::ostream &os) const
std::istream & read (std::istream &is)
std::ostream & write (std::ostream &os, const Element &x) const
std::istream & read (std::istream &is, Element &x) const

Protected Attributes

Element _modulus
 Private (non-static) element for modulus.


Member Typedef Documentation

typedef _Element Element
 

Reimplemented in Modular, Modular< uint8 >, Modular< uint16 >, Modular< uint32 >, and Modular< Element >.


Constructor & Destructor Documentation

ModularBase (  void    )  [inline]
 

ModularBase (  unsigned long    modulus )  [inline]
 

ModularBase (  const integer &    modulus )  [inline]
 

ModularBase (  const ModularBase< Element > &    F )  [inline]
 


Member Function Documentation

Object Management bool areEqual (  const Element &    x,
const Element &    y
)  const [inline]
 

Element& assign (  Element &    x,
const Element &    y
)  const [inline]
 

integer& cardinality (  integer &    c )  const [inline]
 

integer& characteristic (  integer &    c )  const [inline]
 

double& convert (  double &    x,
const Element &    y
)  const [inline]
 

integer& convert (  integer &    x,
const Element &    y
)  const [inline]
 

bool isOne (  const Element &    x )  const [inline]
 

bool isZero (  const Element &    x )  const [inline]
 

std::istream& read (  std::istream &    is,
Element &    x
)  const [inline]
 

std::istream& read (  std::istream &    is )  [inline]
 

std::ostream& write (  std::ostream &    os,
const Element &    x
)  const [inline]
 

std::ostream & write (  std::ostream &    os )  const [inline]
 


Member Data Documentation

Element _modulus [protected]
 

Private (non-static) element for modulus.


Generated on Mon Jun 20 09:16:55 2005 for linbox by doxygen1.2.18