linbox
RandomSparseStreamGF2< _Vector > Class Template Reference

#include <stream-gf2.h>

+ Inheritance diagram for RandomSparseStreamGF2< _Vector >:

Public Types

typedef GF2 Field
 
typedef _Vector Vector
 
typedef VectorStream< VectorSelf_t
 

Public Member Functions

 RandomSparseStreamGF2 (const GF2 &, uint32_t seed, double p, size_t N, size_t M=0)
 
 RandomSparseStreamGF2 (const GF2 &F, const GF2RandIter &r, double p, size_t N, size_t M=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.
 
void setP (double p)
 
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

◆ Field

template<class _Vector = Vector<GF2>::Sparse>
typedef GF2 Field

◆ Vector

template<class _Vector = Vector<GF2>::Sparse>
typedef _Vector Vector

◆ Self_t

template<class _Vector>
typedef VectorStream<Vector> Self_t
inherited

Constructor & Destructor Documentation

◆ RandomSparseStreamGF2() [1/2]

template<class _Vector = Vector<GF2>::Sparse>
RandomSparseStreamGF2 ( const GF2 & ,
uint32_t seed,
double p,
size_t N,
size_t M = 0 )
inline

◆ RandomSparseStreamGF2() [2/2]

template<class _Vector = Vector<GF2>::Sparse>
RandomSparseStreamGF2 ( const GF2 & F,
const GF2RandIter & r,
double p,
size_t N,
size_t M = 0 )
inline

Member Function Documentation

◆ get()

template<class _Vector>
_Vector & get ( Vector & v)
virtual

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

Implements VectorStream< _Vector >.

◆ size()

template<class _Vector = Vector<GF2>::Sparse>
size_t size ( ) const
inlinevirtual

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

Implements VectorStream< _Vector >.

◆ pos()

template<class _Vector = Vector<GF2>::Sparse>
size_t pos ( ) const
inlinevirtual

Get the number of vectors constructed so far.

Implements VectorStream< _Vector >.

◆ dim()

template<class _Vector = Vector<GF2>::Sparse>
size_t dim ( ) const
inlinevirtual

Get the dimension of each vector.

Implements VectorStream< _Vector >.

◆ operator bool()

template<class _Vector = Vector<GF2>::Sparse>
operator bool ( ) const
inlinevirtual

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

Implements VectorStream< _Vector >.

◆ reset()

template<class _Vector = Vector<GF2>::Sparse>
void reset ( )
inlinevirtual

Reset the vector stream to the beginning.

Implements VectorStream< _Vector >.

◆ setP()

template<class _Vector = Vector<GF2>::Sparse>
void setP ( double p)
inline

◆ operator>>()

template<class _Vector>
Self_t & operator>> ( Vector & v)
inlineinherited

Extraction operator form.

◆ rewind()

template<class _Vector>
void rewind ( )
inlineinherited

Alias for reset.

◆ next()

template<class _Vector>
Vector & next ( Vector & v)
inlineinherited

◆ j()

template<class _Vector>
size_t j ( ) const
inlineinherited

◆ m()

template<class _Vector>
size_t m ( ) const
inlineinherited

◆ n()

template<class _Vector>
size_t n ( ) const
inlineinherited

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