linbox
|
extend Wrapper of zz_p from NTL. More...
#include <PID-ntl-zz_p.h>
Public Member Functions | |
integer & | cardinality (integer &c) const |
Cardinality. | |
integer & | characteristic (integer &c) const |
Characteristic. | |
Element & | inv (Element &x, const Element &y) const |
Multiplicative Inverse. | |
bool | isZero (const Element &x) const |
Zero equality. | |
bool | isOne (const Element &x) const |
One equality. | |
Element & | invin (Element &x) const |
Inplace Multiplicative Inverse. | |
std::ostream & | write (std::ostream &os) const |
Print field. |
extend Wrapper of zz_p from NTL.
Add PID functions
Cardinality.
Return integer representing cardinality of the field. Returns the modulus of the field, which should be prime.
Characteristic.
Return integer representing characteristic of the field. Returns the modulus of the field, which should be prime.
Element& inv | ( | Element & | x, |
const Element & | y | ||
) | const [inline, inherited] |
Multiplicative Inverse.
x = 1 / y This function assumes both field elements have already been constructed and initialized.
x | field element (reference returned). |
y | field element. |
bool isZero | ( | const Element & | x | ) | const [inline, inherited] |
Zero equality.
Test if field element is equal to zero. This function assumes the field element has already been constructed and initialized. In this specialization, NTL's IsZero function is called.
x | field element. |
bool isOne | ( | const Element & | x | ) | const [inline, inherited] |
One equality.
Test if field element is equal to one. This function assumes the field element has already been constructed and initialized. In this specialization, NTL's IsOne function is called.
x | field element. |
Element& invin | ( | Element & | x | ) | const [inline, inherited] |
Inplace Multiplicative Inverse.
x = 1 / x This function assumes both field elements have already been constructed and initialized.
x | field element (reference returned). |
std::ostream& write | ( | std::ostream & | os | ) | const [inline, inherited] |
Print field.
os | output stream to which field is written. |