Parallel random permutaiton generator class. More...
Parallel random permutaiton generator class.
T | Integer data type for permutation elements. Default value is uintmax_t . |
The algorithm is described in detail in [1].
The intended usage of the class consists of the following steps running within all MPI processes:
paraper::Paraper<> paraper;
paraper.set_communicator(MPI_COMM_WORLD);
paraper.generate(size);
paraper.free_communicator();
const paraper::Paraper<>::vector_type& = paraper.elements(); paraper::Paraper<>::value_type fisrt = paraper.first(); // position in the global permutation array paraper::Paraper<>::value_type count = paraper.count(); // number of local permutaion elements