#include <unparametric.h>
K | unparameterized field class |
Common Object Interface. | |
These methods are required of all LinBox random field element generators. | |
typedef K | Element |
UnparametricRandIter (const UnparametricField< K > &F, const integer &size=0, const integer &seed=0) | |
UnparametricRandIter (const UnparametricRandIter &R) | |
~UnparametricRandIter (void) | |
UnparametricRandIter & | operator= (const UnparametricRandIter &R) |
Element & | random (Element &x) const |
Public Methods | |
Implementation-Specific Methods. | |
These methods are not required of all \Ref{LinBox Random field element generators} and are included only for this implementation of the archetype. | |
Common Object Iterface | UnparametricRandIter (void) |
Default constructor. |
|
Field element type. The field element must contain a default constructor, a copy constructor, a destructor, and an assignment operator. |
|
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. This implementation sets the sampling size to be no more than the cardinality of the field.
|
|
Copy constructor. Constructs UnparametricRandIter object by copying the random field element generator. This is required to allow generator objects to be passed by value into functions. In this implementation, this means copying the random field element generator to which R._randIter_ptr points.
|
|
Destructor. This destructs the random field element generator object. In this implementation, this destroys the generator by deleting the random generator object to which _randIter_ptr points. |
|
Default constructor.
|
|
Assignment operator. Assigns UnparametricRandIter object R to generator. In this implementation, this means copying the generator to which R._randIter_ptr points.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator.
|