oneapi::mkl::rng::mcg59

Description

The 59-bit multiplicative congruential pseudorandom number generator MCG(1313, 259) from NAG Numerical Libraries [NAG].

API

Syntax

class mcg59 {
public:
    static constexpr std::uint64_t default_seed = 1;
    mcg59(sycl::queue queue, std::uint64_t seed = default_seed);
    mcg59(const mcg59& other);
    mcg59(mcg59&& other);
    mcg59& operator=(const mcg59& other);
    mcg59& operator=(mcg59&& other);
    ~mcg59();
};

Devices supported: Host, 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::uint64_t

Initial conditions of the engine.

See VS Notes for the detailed descriptions.