Givaro
|
#include <zring.h>
Public Types | |
enum | |
using | Element = Element |
using | Rep = Element |
using | Residu_t = Element |
using | Element_ptr = Element * |
using | ConstElement_ptr = const Element * |
typedef DomainRandIter< Self_t >::RandIter | RandIter |
typedef GeneralRingNonZeroRandIter< Self_t > | NonZeroRandIter |
typedef const Element | ConstElement |
Public Member Functions | |
Residu_t | residu () const |
Residu_t | size () const |
Residu_t | cardinality () const |
T & | cardinality (T &c) const |
Residu_t | characteristic () const |
T & | characteristic (T &c) const |
bool | operator== (const Self_t &F) const |
bool | operator!= (const Self_t &F) const |
bool | isZero (const Element &a) const |
bool | isOne (const Element &a) const |
bool | isMOne (const Element &a) const |
bool | isUnit (const Element &a) const |
Element & | abs (Element &x, const Element &a) const |
Element | abs (const Element &a) const |
long | compare (const Element &a, const Element &b) const |
Element & | init (Element &x) const |
Element & | init (Element &x, const T &s) const |
Element & | assign (Element &x, const Element &y) const |
T & | convert (T &x, const Element &y) const |
Element & | reduce (Element &x, const Element &y) const |
Element & | reduce (Element &x) const |
Element | minElement () const |
Element | maxElement () const |
Element & | random (const Random &g, Element &r) const |
Element & | nonzerorandom (const Random &g, Element &a) const |
std::ostream & | write (std::ostream &os) const |
Print field. More... | |
std::ostream & | write (std::ostream &os, const Element &a) const |
Print field element. More... | |
std::istream & | read (std::istream &is, Element &a) const |
Read field element. More... | |
Input/Output Operations | |
std::ostream & | write (std::ostream &os, std::string F) const |
Read field. More... | |
std::istream & | read (std::istream &is) const |
Read field. More... | |
Comparison Predicates | |
bool | areEqual (const Element &x, const Element &y) const |
x == y More... | |
Arithmetic Operations | |
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 More... | |
Element & | sub (Element &x, const Element &y, const Element &z) const |
x := y - z More... | |
Element & | mul (Element &x, const Element &y, const Element &z) const |
x := y*z More... | |
Element & | div (Element &x, const Element &y, const Element &z) const |
x := y/z More... | |
Element & | mod (Element &x, const Element &y, const Element &z) const |
x := y mod z More... | |
Element & | neg (Element &x, const Element &y) const |
x := -y More... | |
Element & | inv (Element &x, const Element &y) const |
x := 1/y More... | |
Element & | axpy (Element &z, const Element &a, const Element &x, const Element &y) const |
z := a*x + y More... | |
Element & | axpyin (Element &z, const Element &a, const Element &x) const |
z := a*x + z More... | |
Element & | axmy (Element &z, const Element &a, const Element &x, const Element &y) const |
z := a*x - y More... | |
Element & | axmyin (Element &z, const Element &a, const Element &x) const |
z := a*x - z More... | |
Element & | maxpy (Element &z, const Element &a, const Element &x, const Element &y) const |
z := y - a*x More... | |
Element & | maxpyin (Element &z, const Element &a, const Element &x) const |
z := z - a*x More... | |
Inplace Arithmetic Operations | |
The first argument is modified and the result is the return value. | |
Element & | addin (Element &x, const Element &y) const |
x := x + y More... | |
Element & | subin (Element &x, const Element &y) const |
x := x - y More... | |
Element & | mulin (Element &x, const Element &y) const |
x := x*y More... | |
Element & | divin (Element &x, const Element &y) const |
x := x/y More... | |
Element & | modin (Element &x, const Element &y) const |
x := x mod y More... | |
Element & | negin (Element &x) const |
x := -x More... | |
Element & | invin (Element &x) const |
x := 1/x More... | |
Static Public Member Functions | |
static Residu_t | maxCardinality () |
static Residu_t | minCardinality () |
static const std::string | type_string () |
Data Fields | |
const Element | one |
const Element | zero |
const Element | mOne |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
Implements RingInterface< _Element >.
Reimplemented from UnparametricOperations< _Element >.
Reimplemented from UnparametricOperations< _Element >.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinevirtualinherited |
Print field.
os | output stream to which field is written. |
Reimplemented from UnparametricOperations< _Element >.
|
inlinevirtualinherited |
Print field element.
os | output stream to which field element is written. |
x | field element. |
Reimplemented from UnparametricOperations< _Element >.
|
inlineinherited |
Read field.
is | input stream from which field is read. |
|
inlinevirtualinherited |
Read field element.
is | input stream from which field element is read. |
x | field element. |
Reimplemented from UnparametricOperations< _Element >.
|
inlineinherited |
Read field.
is | input stream from which field is read. |
x == y
Implements RingInterface< _Element >.
x := y + z
Implements RingInterface< _Element >.
x := y - z
Implements RingInterface< _Element >.
x := y*z
Implements RingInterface< _Element >.
x := y mod z
x := -y
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
z := a*x + y
Implements RingInterface< _Element >.
z := a*x + z
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
z := a*x - y
Implements RingInterface< _Element >.
z := a*x - z
Implements RingInterface< _Element >.
|
inlinevirtualinherited |
z := y - a*x
Implements RingInterface< _Element >.
z := z - a*x
Implements RingInterface< _Element >.
x := x + y
Implements RingInterface< _Element >.
x := x - y
Implements RingInterface< _Element >.
x := x*y
Implements RingInterface< _Element >.
x := -x
Implements RingInterface< _Element >.
|
inherited |
|
inherited |
|
inherited |