oneapi::mkl::rng::mcg31m1

The 31-bit multiplicative congruential pseudorandom number generator MCG(1132489760, 231 -1) [L’Ecuyer99]

Syntax

class mcg31m1 {
public:
    static constexpr std::uint32_t default_seed = 1;


    mcg31m1(sycl::queue queue, std::uint32_t seed = default_seed);


    mcg31m1(const mcg31m1& other);


    mcg31m1(mcg31m1&& other);


    mcg31m1& operator=(const mcg31m1& other);


    mcg31m1& operator=(mcg31m1&& other);


    ~mcg31m1();
};

Devices supported: Host, CPU, and GPU.

Include Files

  • oneapi/mkl/rng.hpp

Description

The 31-bit multiplicative congruential pseudorandom number generator MCG(1132489760, 231 -1) [[L’Ecuyer99]].

Input Parameters

Name

Type

Description

queue

sycl::queue

Valid sycl::queue, calls of the oneapi::mkl::rng::generate() routine submits kernels in this queue.

seed

std::uint32_t

Initial conditions of the engine.

See VS Notes for detailed descriptions.