#include <givaro-montg.h>
Inheritance diagram for GivaroMontg:
Public Types | |
typedef Montgomery< Std32 >::Rep | Element |
typedef GIV_randIter< Montgomery< Std32 >, LinBox::integer > | RandIter |
Public Methods | |
GivaroMontg (const integer &p) | |
GivaroMontg (const integer &p, const integer &k) | |
integer & | characteristic (integer &c) const |
long | characteristic () const |
integer & | cardinality (integer &c) const |
Element & | init (Element &x, const integer &y=0) const |
Element & | init (Element &x, const double y=0.0) const |
integer & | convert (integer &x, const Element &y) const |
double & | convert (double &x, const Element &y) const |
Static Public Methods | |
int | getMaxModulus () |
|
Element type. This type is inherited from the Givaro class Montgomery<Std32> |
|
RandIter type This type is inherited from the Givaro class Montgomery<Std32> |
|
Constructor from an integer this constructor use the ZpzDom<TAG> constructor |
|
Constructor from an integer (takes degree of extension as 2nd parameter, must be 1) this constructor use the ZpzDom<TAG> constructor |
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
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.
|