Public Member Functions |
| | UnparametricField (const UnparametricField &F) |
| | construct this field as copy of F.
|
| unsigned long & | cardinality (unsigned long &c) const |
| unsigned long & | characteristic (unsigned long &c) const |
| unsigned long | cardinality () const |
| unsigned long | characteristic () const |
| UnparametricField< Element > | operator= (const UnparametricField< Element >) |
| template<typename Src > |
| Element & | init (Element &x, const Src &s) const |
| | x := y. Caution: it is via cast to long. Good candidate for specialization.
|
| template<typename T > |
| T & | convert (T &x, const Element &y) const |
| | x := y. Caution: it is via cast to long. Good candidate for specialization. –dpritcha
|
|
| | UnparametricField (long int q=0, size_t e=1) |
| | Builds this field to have characteristic q and cardinality qe.
|
|
first argument is set and the value is also returned.
|
| Element & | init (Element &x) const |
| Element & | assign (Element &x, const Element &y) const |
|
| bool | areEqual (const Element &x, const Element &y) const |
| | x == y
|
| bool | isZero (const Element &x) const |
| | x == 0
|
| bool | isOne (const Element &x) const |
| | x == 1
|
|
The first argument is set and is also the return value.
|
| Element & | add (Element &x, const Element &y, const Element &z) const |
| | x := y + z
|
| Element & | sub (Element &x, const Element &y, const Element &z) const |
| | x := y - z
|
| Element & | mul (Element &x, const Element &y, const Element &z) const |
| | x := y*z
|
| Element & | div (Element &x, const Element &y, const Element &z) const |
| | x := y/z
|
| Element & | neg (Element &x, const Element &y) const |
| | x := -y
|
| Element & | inv (Element &x, const Element &y) const |
| | x := 1/y
|
| Element & | axpy (Element &z, const Element &a, const Element &x, const Element &y) const |
| | z := a*x + y
|
|
The first argument is modified and the result is the return value.
|
| Element & | addin (Element &x, const Element &y) const |
| | x := x + y
|
| Element & | subin (Element &x, const Element &y) const |
| | x := x - y
|
| Element & | mulin (Element &x, const Element &y) const |
| | x := x*y
|
| Element & | divin (Element &x, const Element &y) const |
| | x := x/y
|
| Element & | negin (Element &x) const |
| | x := -x
|
| Element & | invin (Element &x) const |
| | x := 1/x
|
| Element & | axpyin (Element &y, const Element &a, const Element &x) const |
| | y := a*x + y
|
|
| std::ostream & | write (std::ostream &os) const |
| | Print field.
|
| std::ostream & | write (std::ostream &os, const Element &x) const |
| | Print field element.
|
| std::istream & | read (std::istream &is) const |
| | Read field.
|
| std::istream & | read (std::istream &is, Element &x) const |
| | Read field element.
|