linbox
RandomDenseStreamGF2 Class Reference

#include <stream-gf2.h>

+ Inheritance diagram for RandomDenseStreamGF2:

Public Types

typedef BitVector Vector
 
typedef VectorStream< VectorSelf_t
 

Public Member Functions

 RandomDenseStreamGF2 (const GF2 &, uint32_t seed, size_t nn, size_t mm=0)
 
Vectorget (Vector &v)
 Get the next vector from the factory and store it in v.
 
size_t size () const
 Get the number of vectors to be constructed in this stream.
 
size_t pos () const
 Get the number of vectors constructed so far.
 
size_t dim () const
 Get the dimension of each vector.
 
 operator bool () const
 Return true if and only if the vector stream still has more vectors to construct.
 
void reset ()
 Reset the vector stream to the beginning.
 
Self_toperator>> (Vector &v)
 Extraction operator form.
 
void rewind ()
 Alias for reset.
 
Legacy interface

These functions provide compatiblity with older parts of the library.

Their use is deprecated.

Vectornext (Vector &v)
 
size_t j () const
 
size_t m () const
 
size_t n () const
 

Member Typedef Documentation

◆ Vector

typedef BitVector Vector

◆ Self_t

typedef VectorStream<Vector> Self_t
inherited

Constructor & Destructor Documentation

◆ RandomDenseStreamGF2()

RandomDenseStreamGF2 ( const GF2 & ,
uint32_t seed,
size_t nn,
size_t mm = 0 )
inline

Member Function Documentation

◆ get()

Vector & get ( Vector & v)
inlinevirtual

Get the next vector from the factory and store it in v.

Implements VectorStream< BitVector >.

◆ size()

size_t size ( ) const
inlinevirtual

Get the number of vectors to be constructed in this stream.

Implements VectorStream< BitVector >.

◆ pos()

size_t pos ( ) const
inlinevirtual

Get the number of vectors constructed so far.

Implements VectorStream< BitVector >.

◆ dim()

size_t dim ( ) const
inlinevirtual

Get the dimension of each vector.

Implements VectorStream< BitVector >.

◆ operator bool()

operator bool ( ) const
inlinevirtual

Return true if and only if the vector stream still has more vectors to construct.

Implements VectorStream< BitVector >.

◆ reset()

void reset ( )
inlinevirtual

Reset the vector stream to the beginning.

Implements VectorStream< BitVector >.

◆ operator>>()

Self_t & operator>> ( Vector & v)
inlineinherited

Extraction operator form.

◆ rewind()

void rewind ( )
inlineinherited

Alias for reset.

◆ next()

Vector & next ( Vector & v)
inlineinherited

◆ j()

size_t j ( ) const
inlineinherited

◆ m()

size_t m ( ) const
inlineinherited

◆ n()

size_t n ( ) const
inlineinherited

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