linbox
|
Constant vector factory. More...
#include <stream.h>
Public Member Functions | |
ConstantVectorStream (Vector &v, size_t m) | |
Constructor. More... | |
Vector & | get (Vector &v) |
Retrieve vector. 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 factory 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 |
Constant vector factory.
Returns the same vector repeatedly
|
inline |
Constructor.
Construct a new factory with the given field and vector size.
v | Vector to return on next |
m | Number of vectors to return (0 for unlimited) |
|
inlinevirtual |