linbox
|
wrapper of Givaro's Givaro::Montgomery< Givaro::Std32>. More...
#include <givaro-montg.h>
Public Types | |
typedef Givaro::Montgomery < Givaro::Std32 > | Father_t |
Element type. | |
typedef Givaro::GIV_randIter < Givaro::Montgomery < Givaro::Std32 > , LinBox::integer > | RandIter |
RandIter type This type is inherited from the Givaro class Givaro::Montgomery< Givaro::Std32> |
Public Member Functions | |
GivaroMontg (const integer &p) | |
Constructor from an integer this constructor use the ZpzDom<TAG> constructor. | |
GivaroMontg (const integer &p, const integer &k) | |
Constructor from an integer (takes degree of extension as 2nd parameter, must be 1) this constructor use the ZpzDom<TAG> constructor. | |
integer & | characteristic (integer &c) const |
Characteristic. | |
integer & | cardinality (integer &c) const |
Cardinality. | |
Element & | init (Element &x, const integer &y=0) const |
Initialization of field base Element from an integer. | |
integer & | convert (integer &x, const Element &y) const |
Conversion of field base element to an integer. |
wrapper of Givaro's Givaro::Montgomery< Givaro::Std32>.
This class is a modular representation with a Givaro::Montgomery reduction
typedef Givaro::Montgomery< Givaro::Std32> Father_t |
Element type.
This type is inherited from the Givaro class Givaro::Montgomery< Givaro::Std32>
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.
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.
|
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.
x | field base Element to contain output (reference returned). |
y | integer. |
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.
x | integer to contain output (reference returned). |
y | constant field base element. |