Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RandomSparseStreamGF2 Class Template Reference

Inheritance diagram for RandomSparseStreamGF2:

VectorStream List of all members.

template<class _Vector = Vector<GF2>::Sparse>
class LinBox::RandomSparseStreamGF2< _Vector >


Public Types

typedef GF2 Field
typedef _Vector Vector

Public Methods

 RandomSparseStreamGF2 (const GF2 &F, uint32 seed, double p, size_t n, size_t m=0)
Vectorget (Vector &v)
size_t size () const
size_t pos () const
size_t dim () const
 operator bool () const
void reset ()
void setP (double p)

Member Typedef Documentation

typedef GF2 Field
 

typedef _Vector Vector
 

Reimplemented from VectorStream.


Constructor & Destructor Documentation

RandomSparseStreamGF2 const GF2   F,
uint32    seed,
double    p,
size_t    n,
size_t    m = 0
[inline]
 


Member Function Documentation

size_t dim   [inline, virtual]
 

Get the dimension of each vector

Implements VectorStream.

Vector& get Vector   v [virtual]
 

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

Implements VectorStream.

operator bool   [inline, virtual]
 

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

Implements VectorStream.

size_t pos   [inline, virtual]
 

Get the number of vectors constructed so far

Implements VectorStream.

void reset   [inline, virtual]
 

Reset the vector stream to the beginning.

Implements VectorStream.

void setP double    p [inline]
 

size_t size   [inline, virtual]
 

Get the number of vectors to be constructed in this stream

Implements VectorStream.


Generated on Mon Jun 20 09:16:56 2005 for linbox by doxygen1.2.18