Givaro
|
#include <unparametric-operations.h>
Public Types | |
typedef _Element | Element |
typedef Element * | Element_ptr |
typedef const Element | ConstElement |
typedef const Element * | ConstElement_ptr |
Public Member Functions | |
UnparametricOperations () | |
virtual | ~UnparametricOperations () |
virtual bool | isZero (const Element &a) const =0 |
virtual bool | isOne (const Element &a) const =0 |
virtual bool | isMOne (const Element &a) const =0 |
virtual bool | isUnit (const Element &a) const =0 |
Data Object Management. | |
first argument is set and the value is also returned. | |
Element & | init (Element &x) const |
Element & | assign (Element &x, const Element &y) const |
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... | |
Input/Output Operations | |
std::ostream & | write (std::ostream &os) const |
Print field. More... | |
std::ostream & | write (std::ostream &os, std::string F) const |
Read field. More... | |
std::istream & | read (std::istream &is) const |
Read field. More... | |
std::ostream & | write (std::ostream &os, const Element &x) const |
Print field element. More... | |
virtual std::istream & | read (std::istream &is, Element &x) const |
Read field element. More... | |
typedef _Element Element |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inlinevirtual |
Implements RingInterface< _Element >.
Reimplemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
Implements RingInterface< _Element >.
Reimplemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
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
Implements RingInterface< _Element >.
|
inlinevirtual |
z := a*x + y
Implements RingInterface< _Element >.
z := a*x + z
Implements RingInterface< _Element >.
|
inlinevirtual |
z := a*x - y
Implements RingInterface< _Element >.
z := a*x - z
Implements RingInterface< _Element >.
|
inlinevirtual |
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 >.
|
inlinevirtual |
Print field.
os | output stream to which field is written. |
Implements RingInterface< _Element >.
Reimplemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
inline |
Read field.
is | input stream from which field is read. |
|
inline |
Read field.
is | input stream from which field is read. |
|
inlinevirtual |
Print field element.
os | output stream to which field element is written. |
x | field element. |
Implements RingInterface< _Element >.
Reimplemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
inlinevirtual |
Read field element.
is | input stream from which field element is read. |
x | field element. |
Implements RingInterface< _Element >.
Reimplemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
pure virtualinherited |
Implemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
pure virtualinherited |
Implemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
pure virtualinherited |
Implemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.
|
pure virtualinherited |
Implemented in UnparametricZRing< _Element >, UnparametricZRing< Element >, and UnparametricZRing< Integer >.