#include <gf2.h>
Public Types | |
typedef bool | Element |
Public Methods | |
GF2RandIter (const GF2 &F, const integer &size=0, const integer &seed=0) | |
GF2RandIter (const GF2RandIter &R) | |
~GF2RandIter () | |
GF2RandIter & | operator= (const GF2RandIter &R) |
bool & | random (bool &a) const |
BitVector::reference | random (BitVector::reference a) const |
std::_Bit_reference | random (std::_Bit_reference a) const |
ElementAbstract & | random (ElementAbstract &a) const |
|
|
|
Constructor from field, sampling size, and seed. The random field element iterator works in the field F, is seeded by seed, and it returns any one element with probability no more than 1/min (size, F.cardinality (c)). A sampling size of zero means to sample from the entire field. A seed of zero means to use some arbitrary seed for the generator. Purely virtual.
|
|
Copy constructor. Constructs ModularRandIter object by copying the random field element generator. This is required to allow generator objects to be passed by value into functions.
|
|
Destructor. This destructs the random field element generator object. |
|
Assignment operator. Assigns ModularRandIter object R to generator.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|