oneapi::mkl::rng::r250

The 32-bit generalized feedback shift register pseudorandom number generator GFSR(250,103)[Kirkpatrick81].

Syntax

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


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


    r250(sycl::queue queue, std::vector<std::uint32_t> seed);


    r250(const r250& other);


    r250(r250&& other);


    r250& operator=(const r250& other);


    r250& operator=(r250&& other);


    ~r250();
};

Devices supported: Host and CPU.

Include Files

  • oneapi/mkl/rng.hpp

Description

The 32-bit generalized feedback shift register pseudorandom number generator GFSR(250,103) [Kirkpatrick81].

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_t / std::initializer_list<std::uint32_t>

Initial conditions of the engine.

See VS Notes for detailed descriptions.