linbox
|
Stream for . More...
#include <stream.h>
Public Member Functions | |
StandardBasisStream (Field &F, size_t n) | |
Constructor. More... | |
Vector & | get (Vector &v) |
Get next element. More... | |
Self_t & | operator>> (Vector &v) |
Extraction operator form. | |
size_t | size () const |
Number of vectors to be created. | |
size_t | pos () const |
Number of vectors created so far. | |
size_t | dim () const |
Dimension of the space. | |
operator bool () const | |
Check whether we have reached the end. | |
void | reset () |
Reset the stream to start at the beginning. | |
void | rewind () |
Alias for reset. | |
Legacy interface | |
These functions provide compatiblity with older parts of the library. Their use is deprecated. | |
Vector & | next (Vector &v) |
size_t | j () const |
size_t | m () const |
size_t | n () const |
Stream for .
Generates the sequence (e_1,...,e_n) over a given field
This class is generic with respect to the underlying vector representation.
StandardBasisStream | ( | Field & | F, |
size_t | n | ||
) |
Constructor.
Construct a new stream with the given field and vector size.
F | Field over which to create vectors |
n | Size of vectors |
|
virtual |
Get next element.
v | Vector into which to generate vector |
Implements VectorStream< _Vector >.