#include <ntl-rr.h>
◆ Element
◆ Father_t
◆ RandIter
◆ NTL_RR()
◆ inv()
Multiplicative Inverse.
x = 1 / y This function assumes both field elements have already been constructed and initialized.
- Returns
- reference to x.
- Parameters
-
| x | field element (reference returned). |
| y | field element. |
◆ isZero()
| bool isZero |
( |
const Element & | x | ) |
const |
|
inline |
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.
- Returns
- boolean true if equals zero, false if not.
- Parameters
-
◆ isOne()
| bool isOne |
( |
const Element & | x | ) |
const |
|
inline |
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.
- Returns
- boolean true if equals one, false if not.
- Parameters
-
◆ isMOne()
| bool isMOne |
( |
const Element & | x | ) |
const |
|
inline |
MOne 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 IsMOne function is called.
- Returns
- boolean true if equals one, false if not.
- Parameters
-
◆ isUnit()
| bool isUnit |
( |
const Element & | x | ) |
const |
|
inline |
invertibility.
Test if field element is invertible. This function assumes the field element has already been constructed and initialized.
- Returns
- boolean true if invertible, false if not.
- Parameters
-
◆ invin()
Inplace Multiplicative Inverse.
x = 1 / x This function assumes both field elements have already been constructed and initialized.
- Returns
- reference to x.
- Parameters
-
| x | field element (reference returned). |
◆ write() [1/2]
| std::ostream & write |
( |
std::ostream & | os | ) |
const |
|
inline |
Print field.
- Returns
- output stream to which field is written.
- Parameters
-
| os | output stream to which field is written. |
◆ cardinality()
◆ characteristic()
◆ write() [2/2]
| std::ostream & write |
( |
std::ostream & | os, |
|
|
const Element & | x ) const |
|
inline |
◆ init() [1/2]
◆ init() [2/2]
◆ convert()
template<typename T>
| T & convert |
( |
T & | x, |
|
|
const Element & | y ) const |
|
inline |
◆ zero
◆ one
◆ mOne
The documentation for this struct was generated from the following file: