oneapi::mkl::rng::mt2203¶
Description¶
Set of 6024 Mersenne Twister pseudorandom number generators MT2203 [Matsumoto98], [Matsumoto00]. Each of them generates a sequence of period length equal to 22203-1. Parameters of the generators provide mutual independence of the corresponding sequences.
API¶
Syntax¶
class mt2203 {
public:
static constexpr std::uint32_t default_seed = 1;
mt2203(sycl::queue queue, std::uint32_t seed = default_seed);
mt2203(sycl::queue queue, std::uint32_t seed, std::uint32_t engine_idx);
mt2203(sycl::queue queue, std::initializer_list<std::uint32_t> seed);
mt2203(sycl::queue queue, std::initializer_list<std::uint32_t> seed, std::uint32_t engine_idx);
mt2203(const mt2203& other);
mt2203(mt2203&& other);
mt2203& operator=(const mt2203& other);
mt2203& operator=(mt2203&& other);
~mt2203()
};
Devices supported: Host, CPU, and GPU.
Include Files¶
oneapi/mkl/rng.hpp
Input Parameters¶
Name |
Type |
Description |
---|---|---|
queue |
|
Valid |
seed |
|
Initial conditions of the engine. |
engine_idx |
|
Index of the engine from the set (set contains 6024 basic generators). |
See VS Notes for the detailed descriptions.