linbox
1
|
wrapper of Givaro's ZpzDom.Most methods are inherited from ZpzDom<Std16>, ZpzDom<Std32> and ZpzDom<log16> classes of Givaro. These classes allow to construct only finite field with a prime modulus. More...
#include <givaro-zpz.h>
Public Types | |
typedef ZpzDom< TAG >::Rep | Element |
typedef GIV_randIter< ZpzDom < TAG >, integer > | RandIter |
Public Member Functions | |
GivaroZpz (const integer &p) | |
GivaroZpz (const integer &p, const integer &k) | |
GivaroZpz (const GivaroZpz< TAG > &F) | |
integer & | characteristic (integer &c) const |
integer & | cardinality (integer &c) const |
integer & | convert (integer &x, const Element &y) const |
Element & | init (Element &x, const integer &y=0) const |
template<> | |
integer & | convert (integer &x, const Element &y) const |
wrapper of Givaro's ZpzDom.
Most methods are inherited from ZpzDom<Std16>, ZpzDom<Std32> and ZpzDom<log16> classes of Givaro. These classes allow to construct only finite field with a prime modulus.
typedef ZpzDom<TAG>::Rep Element |
Element type. This type is inherited from the Givaro class ZpzDom<TAG>
RandIter type This type is inherited from the Givaro class ZpzDom<TAG>
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
Copy constructor This copy constructor use the ZpzDom<TAG> copy constructor
integer& characteristic | ( | integer & | c | ) | const [inline] |
Operator = Characteristic. Return integer representing characteristic of the domain.
integer& cardinality | ( | integer & | c | ) | const [inline] |
Cardinality. Return integer representing cardinality of the domain.
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. |
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.
x | field base element to contain output (reference returned). |
y | integer. |
Specialisation of the convert function for the zech log representation of givaro-zpz (GivaroZpz<Log16>. this function translates the internal representation to the real value of the element. This can have no sense but can be usefull NB : the init function for this specialisation does the same thing. the function transaltes the values to her internal representation.