sfmt19937¶
The SIMD-oriented Mersenne Twister pseudorandom number generator.
Description
SIMD-oriented Fast Mersenne Twister pseudorandom number generator SFMT19937 [Saito08] with a period length equal to
Generation algorithm
Where
Integer output:
class sfmt19937¶
Syntax
namespace oneapi::mkl::rng {
class sfmt19937 {
public:
static constexpr std::uint32_t default_seed = 1;
sfmt19937(sycl::queue queue, std::uint32_t seed = default_seed);
sfmt19937(sycl::queue queue, std::initializer_list<std::uint32_t> seed);
sfmt19937(const sfmt19937& other);
sfmt19937(sfmt19937&& other);
sfmt19937& operator=(const sfmt19937& other);
sfmt19937& operator=(sfmt19937&& other);
~sfmt19937();
};
}
Class Members
Routine |
Description |
---|---|
sfmt19937(sycl::queue queue, std::uint32_t seed = default_seed) |
Constructor for common seed initialization of the engine |
sfmt19937(sycl::queue queue, std::initializer_list<std::uint32_t> seed) |
Constructor for extended seed initialization of the engine |
Copy constructor |
|
Move constructor |
|
Copy assignment operator |
|
Move assignment operator |
Constructors
sfmt19937::sfmt19937(sycl::queue queue, std::uint32_t seed = default_seed)
Input Parameters
- queue
Valid
sycl::queue
object, calls of the oneapi::mkl::rng::generate() routine submits kernels in this queue to obtain random numbers from a given engine.- seed
The initial conditions of the generator state. The initialization algorithm described in [Saito08].
sfmt19937::sfmt19937(sycl::queue queue, std::initializer_list<std::uint32_t> seed)
Input Parameters
- queue
Valid
sycl::queue
object, calls of the oneapi::mkl::rng::generate() routine submits kernels in this queue to obtain random numbers from a given engine.- seed
The initial conditions of the generator state. The initialization algorithm described in [Saito08].
sfmt19937::sfmt19937(const sfmt19937& other)
Input Parameters
- other
Valid
sfmt19937
object. Thequeue
and state of the other engine is copied and applied to the current engine.
sfmt19937::sfmt19937(sfmt19937&& other)
Input Parameters
- other
Valid
sfmt19937
object. Thequeue
and state of the other engine is moved to the current engine.
sfmt19937::sfmt19937& operator=(const sfmt19937& other)
Input Parameters
- other
Valid
sfmt19937
object. Thequeue
and state of the other engine is copied and applied to the current engine.
sfmt19937::sfmt19937& operator=(sfmt19937&& other)
Input Parameters
- other
Valid
sfmt19937
r-value object. Thequeue
and state of the other engine is moved to the current engine.
Parent topic: Engines (Basic Random Number Generators)