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

GivaroGfq Class Reference

#include <givaro-gfq.h>

Inheritance diagram for GivaroGfq:

FieldInterface List of all members.

Detailed Description

This template class is define just to be in phase with the LinBox archetype. Most of all methods are inherited from GFqDom<long> class of Givaro. these class allow to construct only extension field with a prime characteristic.


Public Types

typedef GFqDom< int32 >::Rep Element
typedef GIV_randIter< GFqDom<
int32 >, LinBox::integer
RandIter

Public Methods

 GivaroGfq (const integer &p, const integer &k=1)
 GivaroGfq (const integer &p, const integer &k, const std::vector< integer > &modPoly)
integercharacteristic (integer &c) const
int32 characteristic () const
integercardinality (integer &c) const
integer cardinality () const
Elementinit (Element &x, const integer &y=0) const
Elementinit (Element &x, const double y=0.0) const
integerconvert (integer &x, const Element &y) const
double & convert (double &x, const Element &y) const


Member Typedef Documentation

typedef GFqDom<int32>::Rep Element
 

Element type. This type is inherited from the Givaro class GFqDom<int32>

typedef GIV_randIter< GFqDom<int32>, LinBox::integer > RandIter
 

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


Constructor & Destructor Documentation

GivaroGfq const integer   p,
const integer   k = 1
[inline]
 

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

GivaroGfq const integer   p,
const integer   k,
const std::vector< integer > &    modPoly
[inline]
 


Member Function Documentation

integer cardinality   const [inline]
 

integer& cardinality integer   c const [inline]
 

Cardinality. Return integer representing cardinality of the domain. Returns a non-negative integer for all domains with finite cardinality, and returns -1 to signify a domain of infinite cardinality.

Returns:
integer representing cardinality of the domain

int32 characteristic   const [inline]
 

integer& characteristic integer   c const [inline]
 

Characteristic. Return integer representing characteristic of the domain. Returns a positive integer to all domains with finite characteristic, and returns 0 to signify a domain of infinite characteristic.

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.

Element& init Element   x,
const double    y = 0.0
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. We assume that the type of Element is short int. this methos is just a simple cast.

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