pcg64_dxsm
Description
A permuted congruential pseudorandom number generator PCG64 DXSM with a period of [pcg2014].
Generation algorithm
API
Syntax
namespace oneapi::mkl::rng::device {
template<std::int32_t VecSize = 1>
class pcg64_dxsm {
public:
static constexpr std::uint64_t default_seed = 0;
static constexpr std::int32_t vec_size = VecSize;
pcg64_dxsm() : pcg64_dxsm(default_seed) {}
pcg64_dxsm(std::uint64_t seed, std::uint64_t offset = 0);
pcg64_dxsm(std::initializer_list<std::uint64_t> seed, std::uint64_t offset = 0);
pcg64_dxsm(std::uint64_t seed, std::initializer_list<std::uint64_t> offset);
pcg64_dxsm(std::initializer_list<std::uint64_t> seed, std::initializer_list<std::uint64_t> offset);
};
}
Include Files
oneapi/mkl/rng/device.hpp
Template Parameters
Name |
Type |
Description |
---|---|---|
VecSize |
std::int32_t |
Describes the size of the vector that will be produced by the generate function with this engine. VecSize values can be 1, 2, 3, 4, 8, or 16 as the sycl:vec class size. By default, VecSize = 1; for this case, the generate function returns a single random number. |
Constructors Input Parameters
Name |
Type |
Description |
---|---|---|
seed |
std::uint64_t std::initializer_list<std::uint64_t> |
Initial conditions of the 128 bit engine state. |
offset |
std::uint64_t std::initializer_list<std::uint64_t> |
Number of skipped elements, for initializer_list offset is calculated as: num_to_skip[0]+ num_to_skip [1]*264. |
See VS Notes for detailed descriptions.