#include <gf2.h>
◆ Element
◆ Residu_t
◆ GF2RandIter() [1/2]
| GF2RandIter |
( |
const GF2 & | F, |
|
|
const size_t & | seed = 0, |
|
|
const size_t & | size = 0 ) |
|
inline |
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.
- Parameters
-
| F | LinBox field archetype object in which to do arithmetic |
| size | constant integer reference of sample size from which to sample (default = modulus of field) |
| seed | constant integer reference from which to seed random number generator (default = 0) |
◆ GF2RandIter() [2/2]
◆ ~GF2RandIter()
Destructor.
This destructs the random field element generator object.
◆ operator=()
Assignment operator.
Assigns ModularRandIter object R to generator.
- Parameters
-
◆ random() [1/5]
| bool & random |
( |
bool & | a | ) |
const |
|
inline |
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.
- Returns
- reference to random field element
◆ random() [2/5]
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.
- Returns
- reference to random field element
◆ random() [3/5]
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.
- Returns
- reference to random field element
◆ random() [4/5]
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.
- Returns
- reference to random field element
◆ random() [5/5]
| size_t & random |
( |
size_t & | a | ) |
const |
|
inline |
◆ getMT() [1/2]
◆ getMT() [2/2]
The documentation for this class was generated from the following file: