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

GivaroZpz Class Template Reference

#include <givaro-zpz.h>

Inheritance diagram for GivaroZpz:

ZpzDom FieldInterface List of all members.

Detailed Description

template<class TAG>
class LinBox::GivaroZpz< TAG >

This template class is defined just to be in phase with the LinBox archetype. Read the archetype to know all functions are available. Most of all methods are inherited from ZpzDom<Std16>, ZpzDom<Std32> and ZpzDom<log16> class of Givaro. these class allow to construct only finite field with a prime modulus.


Public Types

typedef ZpzDom< TAG >::Rep Element
typedef GIV_randIter< ZpzDom<
TAG >, integer > 
RandIter

Public Methods

 GivaroZpz (const integer &p)
 GivaroZpz (const integer &p, const integer &k)
 GivaroZpz (const GivaroZpz< TAG > &F)
integer & characteristic (integer &c) const
long characteristic () const
integer & cardinality (integer &c) const
integer & convert (integer &x, const Element &y) const
double & convert (double &x, const Element &y) const
Element & init (Element &x, const integer &y=0) const
Element & init (Element &x, const double &y) const

Static Public Methods

int getMaxModulus ()


Member Typedef Documentation

typedef ZpzDom<TAG>::Rep Element
 

Element type. This type is inherited from the Givaro class ZpzDom<TAG>

typedef GIV_randIter< ZpzDom<TAG>, integer > RandIter
 

RandIter type This type is inherited from the Givaro class ZpzDom<TAG>


Constructor & Destructor Documentation

GivaroZpz (  const integer &    p )  [inline]
 

Constructor from an integer this constructor use the ZpzDom<TAG> constructor

GivaroZpz (  const integer &    p,
const integer &    k
)  [inline]
 

Constructor from an integer (takes degree of extension as 2nd parameter, must be 1) this constructor use the ZpzDom<TAG> constructor

GivaroZpz (  const GivaroZpz< TAG > &    F )  [inline]
 

Copy constructor This copy constructor use the ZpzDom<TAG> copy constructor


Member Function Documentation

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

Cardinality. Return integer representing cardinality of the domain.

Returns:
integer representing cardinality of the domain

long characteristic (    )  const [inline]
 

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

Characteristic. Return integer representing characteristic of the domain.

Returns:
integer representing characteristic of the domain.

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

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

Conversion of field base element to an integer. This function assumes the output field base element x has already been constructed, but that it is not already initialized.

Returns:
reference to an integer.
Parameters:
x  integer to contain output (reference returned).
y  constant field base element.

int getMaxModulus (    )  [static]
 

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

Element& init (  Element &    x,
const integer &    y = 0
)  const [inline]
 

Initialization of field base element from an integer. Behaves like C++ allocator construct. This function assumes the output field base element x has already been constructed, but that it is not already initialized.

Returns:
reference to field base element.
Parameters:
x  field base element to contain output (reference returned).
y  integer.


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