permlib
0.2.9
Library for permutation computations
|
generates nearly-uniformly distributed random group elements using the product replacement algorithm More...
#include <product_replacement_generator.h>
Public Member Functions | |
template<class InputIterator > | |
ProductReplacementGenerator (const unsigned int n, InputIterator generatorsBegin, InputIterator generatorsEnd) | |
initializes class with group generators More... | |
virtual PERM | next () |
generates an element | |
![]() | |
virtual bool | hasNext () |
true, iff more elements can be generated | |
![]() | |
virtual | ~Generator () |
virtual destructor | |
generates nearly-uniformly distributed random group elements using the product replacement algorithm
permlib::ProductReplacementGenerator< PERM >::ProductReplacementGenerator | ( | const unsigned int | n, |
InputIterator | generatorsBegin, | ||
InputIterator | generatorsEnd | ||
) |
initializes class with group generators
generatorsBegin | begin iterator of PERM |
generatorsEnd | end iterator of PERM |