|
linbox
|
A base class for BlackboxContainer. More...
#include <blackbox-container-base.h>
Data Structures | |
| class | const_iterator |
Public Types | |
| typedef Field::Element | Element |
Public Member Functions | |
| BlackboxContainerBase (const Blackbox *BB, const Field &F) | |
| BlackboxContainerBase (const Blackbox *BB, const Field &F, size_t Size) | |
| virtual | ~BlackboxContainerBase () |
| const_iterator | begin () |
| const_iterator | end () |
| long | size () const |
| const Field & | getField () const |
| const Field & | field () const |
| Blackbox * | getBB () const |
Protected Member Functions | |
| virtual void | _launch ()=0 |
| Launches a process to do the computation of the next sequence value: $v^T A^{i+1} u$. | |
| virtual void | _wait ()=0 |
| If a separate process is computing the next value of $v^T A^{i+1} u$, _wait() blocks until the value is ready. | |
| const Element & | getvalue () |
| template<class Vector1, class Vector2> | |
| Element & | init (const Vector1 &uu, const Vector2 &vv) |
| Initializers. | |
| template<class RandIter> | |
| Element & | init (RandIter &g) |
| Random Left vectors, Zero Right vector. | |
| template<class Vector> | |
| Element & | init (const Vector &uu) |
| User Left vectors, Zero Right vector. | |
Protected Attributes | |
| const Field * | _field |
| Members. | |
| VectorDomain< Field > | _VD |
| const Blackbox * | _BB |
| long | _size |
| long | casenumber |
| BlasVector< Field > | u |
| BlasVector< Field > | v |
| Element | _value |
Friends | |
| class | const_iterator |
A base class for BlackboxContainer.
The primary member function is begin().
It returns an iterator which after i increments (++) dereferences to $v^T A^i u$, for $v$ and $u$ determined by the form of construction. It is designed to be used with implementations of Berlekamp-Massey such as MasseyDom.
Subclasses complete the implementation by defining _launch() and _wait().
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Launches a process to do the computation of the next sequence value: $v^T A^{i+1} u$.
...or just does it.
Implemented in BlackboxContainer< Field, _Blackbox, RandIter >, BlackboxContainerSymmetric< Field, _Blackbox, RandIter >, and DenseContainer< Field, Vector, RandIter >.
If a separate process is computing the next value of $v^T A^{i+1} u$, _wait() blocks until the value is ready.
Implemented in BlackboxContainer< Field, _Blackbox, RandIter >, BlackboxContainerSymmetric< Field, _Blackbox, RandIter >, and DenseContainer< Field, Vector, RandIter >.
|
inlineprotected |
Initializers.
User Left and Right vectors
Random Left vectors, Zero Right vector.
User Left vectors, Zero Right vector.
|
protected |
|
protected |
|
protected |