onemkl::rng::mt19937

Mersenne Twister pseudorandom number generator MT19937 [Matsumoto98] with period length 219937-1 of the produced sequence.

Syntax

 class mt19937 :         internal::engine_base<mt19937>{
 public:
  mt19937 (cl::sycl::queue& queue, std::uint32_t         seed)
  mt19937 (cl::sycl::queue& queue,         std::initializer_list<std::uint32_t> seed)
  mt19937 (const mt19937& other)
  mt19937& operator=(const mt19937& other)
  ~mt19937()
}

Include Files

  • mkl_sycl.hpp

Description

Mersenne Twister pseudorandom number generator MT19937 [Matsumoto98] with period length 219937-1 of the produced sequence.

Input Parameters

Name

Type

Description

queue

cl::sycl::queue

Valid cl::sycl::queue, calls of onemkl::rng::generate() routine submit kernels in this queue.

seed

std::uint32_t / std::initializer_list<std::uint32_t>

Initial conditions of the engine.

See VS Notes for detailed descriptions.