linbox
Public Member Functions
VectorStream Class Reference

Vector factory. More...

#include <stream.h>

Public Member Functions

virtual Vector & get (Vector &v)=0
 Get the next vector from the factory and store it in v.
Self_toperator>> (Vector &v)
 Extraction operator form.
virtual size_t size () const =0
 Get the number of vectors to be constructed in this stream.
virtual size_t pos () const =0
 Get the number of vectors constructed so far.
virtual size_t dim () const =0
 Get the dimension of each vector.
virtual operator bool () const =0
 Return true if and only if the vector stream still has more vectors to construct.
virtual void reset ()=0
 Reset the vector stream to 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

Detailed Description

Vector factory.

This is an abstract base class that generates a sequence of vectors in a generic way. Typical uses would be in tests, where the same test might be run on a sequence of random vectors or on e_1, ..., e_n.


The documentation for this class was generated from the following file: