linbox
|
implement the ring archetype to minimize code bloat. More...
#include <envelope.h>
Public Types | |
typedef FieldEnvelope< Ring >::Element | Element |
element type. More... | |
typedef FieldEnvelope< Ring >::RandIter | RandIter |
Random iterator generator type. More... | |
Object Management | |
class | RandIterEnvelope< Ring > |
Default constructor. More... | |
RingEnvelope (void) | |
Default constructor. More... | |
RingEnvelope (const Ring &F) | |
Constructor from ring to be wrapped. More... | |
RingEnvelope (const RingEnvelope &E) | |
Copy constructor. More... | |
FieldAbstract * | clone () const |
Virtual copy constructor. More... | |
RingAbstract & | operator= (const RingAbstract &F) |
Assignment operator. More... | |
FieldAbstract & | operator= (const FieldAbstract &F) |
Assignment operator. More... | |
ElementAbstract & | init (ElementAbstract &x, const integer &y=0) const |
Default constructor. More... | |
integer & | convert (integer &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | assign (ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | neg (ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | inv (ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | negin (ElementAbstract &x) const |
Default constructor. More... | |
ElementAbstract & | invin (ElementAbstract &x) const |
Default constructor. More... | |
integer & | cardinality (integer &c) const |
Default constructor. More... | |
integer & | characteristic (integer &c) const |
Default constructor. More... | |
bool | areEqual (const ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | add (ElementAbstract &x, const ElementAbstract &y, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | sub (ElementAbstract &x, const ElementAbstract &y, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | mul (ElementAbstract &x, const ElementAbstract &y, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | div (ElementAbstract &x, const ElementAbstract &y, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | axpy (ElementAbstract &r, const ElementAbstract &a, const ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
ElementAbstract & | addin (ElementAbstract &x, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | subin (ElementAbstract &x, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | mulin (ElementAbstract &x, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | divin (ElementAbstract &x, const ElementAbstract &z) const |
Default constructor. More... | |
ElementAbstract & | axpyin (ElementAbstract &r, const ElementAbstract &x, const ElementAbstract &y) const |
Default constructor. More... | |
bool | isZero (const ElementAbstract &x) const |
Default constructor. More... | |
bool | isOne (const ElementAbstract &x) const |
Default constructor. More... | |
bool | isUnit (const ElementAbstract &x) const |
Invertibility test. More... | |
bool | isZeroDivisor (const ElementAbstract &x) const |
Divisibility of zero test. More... | |
std::ostream & | write (std::ostream &os) const |
Default constructor. More... | |
std::istream & | read (std::istream &is) |
Default constructor. More... | |
std::ostream & | write (std::ostream &os, const ElementAbstract &x) const |
Default constructor. More... | |
std::istream & | read (std::istream &is, ElementAbstract &x) const |
Default constructor. More... | |
implement the ring archetype to minimize code bloat.
This class implements all purely virtual member functions of the abstract base class. This class is used to wrap a LinBox ring so that it might be used with the Ring archetype.
typedef FieldEnvelope<Ring>::Element Element |
element type.
It is derived from the class ElementAbstract, and it must contain a wrapped ring element.
typedef FieldEnvelope<Ring>::RandIter RandIter |
Random iterator generator type.
It is derived from the class RandIterAbstract, and it must contain a wrapped ring random iterator generator.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Constructor from ring to be wrapped.
F | Ring object to be wrapped. |
|
inline |
Copy constructor.
Constructs RingEnvelope object by copying the ring. This is required to allow ring objects to be passed by value into functions. In this implementation, this means copying the ring E._field
.
E | RingEnvelope object. |
|
inline |
Virtual copy constructor.
Required because constructors cannot be virtual. Passes construction on to derived classes. This function is not part of the common object interface.
|
inline |
Assignment operator.
Required by abstract base class.
F | constant reference to RingAbstract object |
|
inline |
Assignment operator.
Required by abstract base class.
F | constant reference to RingAbstract object |
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
Default constructor.
In this implementation, this means copying the ring E._field
.
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Invertibility test.
Test if ring element is invertible. This function assumes the ring element has already been constructed and initialized.
x | ring element. |
|
inline |
Divisibility of zero test.
Test if ring element is a zero divisor. This function assumes the ring element has already been constructed and initialized.
x | ring element. |
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
inline |
Default constructor.
In this implementation, this means copying the ring E._field
.
|
friend |
Default constructor.
In this implementation, this means copying the ring E._field
.