Public Member Functions
StandardBasisStream< Field, _Vector, Trait > Class Template Reference

Stream for $e_1,\cdots,e_n$. More...

#include <stream.h>

+ Inheritance diagram for StandardBasisStream< Field, _Vector, Trait >:

Public Member Functions

 StandardBasisStream (Field &F, size_t n)
 Constructor. More...
Vector & get (Vector &v)
 Get next element. More...
Self_toperator>> (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

Detailed Description

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
class LinBox::StandardBasisStream< Field, _Vector, Trait >

Stream for $e_1,\cdots,e_n$.

Generates the sequence (e_1,...,e_n) over a given field

This class is generic with respect to the underlying vector representation.

Constructor & Destructor Documentation

StandardBasisStream ( Field &  F,
size_t  n 


Construct a new stream with the given field and vector size.

FField over which to create vectors
nSize of vectors

Member Function Documentation

Vector& get ( Vector &  v)

Get next element.

vVector into which to generate vector
reference to new vector

Implements VectorStream< _Vector >.

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