#include <stream.h>
Inheritance diagram for RandomSparseStream:
Public Types | |
typedef _Vector | Vector |
typedef RandomSparseStream< Field, Vector, RandIter, Trait > | Self_t |
Public Methods | |
RandomSparseStream (const Field &F, double p, size_t n, size_t m=0) | |
RandomSparseStream (const Field &F, const RandIter &r, double p, size_t n, size_t m=0) | |
Vector & | get (Vector &v) |
Self_t & | operator>> (Vector &v) |
size_t | size () const |
size_t | pos () const |
size_t | dim () const |
operator bool () const | |
void | reset () |
void | setP (double p) |
|
Reimplemented from VectorStream. |
|
Reimplemented from VectorStream. |
|
Constructor Construct a new stream with the given field and vector size.
|
|
Constructor Construct a new stream with the given field and vector size.
|
|
Dimension of the space Implements VectorStream. |
|
Get next element
Implements VectorStream. |
|
Check whether we have reached the end Implements VectorStream. |
|
Extraction operator form Reimplemented from VectorStream. |
|
Number of vectors created so far Implements VectorStream. |
|
Reset the stream to start at the beginning Implements VectorStream. |
|
Set the probability of a nonzero entry |
|
Number of vectors to be created Implements VectorStream. |