Visible to Intel only — GUID: GUID-44488472-E32B-4330-8CD9-50EC6BD1FFD1
Visible to Intel only — GUID: GUID-44488472-E32B-4330-8CD9-50EC6BD1FFD1
oneapi::mkl::rng::mt19937
Description
Mersenne Twister pseudorandom number generator MT19937 [Matsumoto98] with period length 219937-1 of the produced sequence.
API
Syntax
class mt19937 { public: static constexpr std::uint32_t default_seed = 1; mt19937(sycl::queue queue, std::uint32_t seed = default_seed); mt19937(sycl::queue queue, std::initializer_list<std::uint32_t> seed); mt19937(const mt19937& other); mt19937(mt19937&& other); mt19937& operator=(const mt19937& other); mt19937& operator=(mt19937&& other); ~mt19937(); };
Devices supported: CPU and GPU.
Include Files
oneapi/mkl/rng.hpp
Input Parameters
Name |
Type |
Description |
---|---|---|
queue |
sycl::queue |
Valid sycl::queue, calls of oneapi::mkl::rng::generate() routine submit kernels in this queue. |
seed |
std::uint32_tstd::initializer_list<std::uint32_t> |
Initial conditions of the engine. |
See VS Notes for detailed descriptions.
Did you find the information on this page useful?
Feedback Message
Characters remaining: