alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::engine::cpu::MersenneTwister Class Reference

The standard library mersenne twister random number generator. More...

#include <RandStdLib.hpp>

Public Types

using result_type = std::mt19937::result_type
 

Public Member Functions

 MersenneTwister ()=default
 
ALPAKA_FN_HOST MersenneTwister (std::uint32_t const &seed, std::uint32_t const &subsequence=0, std::uint32_t const &offset=0)
 
ALPAKA_FN_HOST auto operator() () -> result_type
 

Static Public Member Functions

static constexpr ALPAKA_FN_HOST auto max () -> result_type
 
static constexpr ALPAKA_FN_HOST auto min () -> result_type
 

Detailed Description

The standard library mersenne twister random number generator.

size of state: 19937 bytes

Definition at line 40 of file RandStdLib.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 57 of file RandStdLib.hpp.

Constructor & Destructor Documentation

◆ MersenneTwister() [1/2]

alpaka::rand::engine::cpu::MersenneTwister::MersenneTwister ( )
default

◆ MersenneTwister() [2/2]

ALPAKA_FN_HOST alpaka::rand::engine::cpu::MersenneTwister::MersenneTwister ( std::uint32_t const &  seed,
std::uint32_t const &  subsequence = 0,
std::uint32_t const &  offset = 0 
)
inline

Definition at line 47 of file RandStdLib.hpp.

Member Function Documentation

◆ max()

static constexpr ALPAKA_FN_HOST auto alpaka::rand::engine::cpu::MersenneTwister::max ( ) -> result_type
inlinestaticconstexpr

Definition at line 64 of file RandStdLib.hpp.

◆ min()

static constexpr ALPAKA_FN_HOST auto alpaka::rand::engine::cpu::MersenneTwister::min ( ) -> result_type
inlinestaticconstexpr

Definition at line 59 of file RandStdLib.hpp.

◆ operator()()

ALPAKA_FN_HOST auto alpaka::rand::engine::cpu::MersenneTwister::operator() ( ) -> result_type
inline

Definition at line 69 of file RandStdLib.hpp.


The documentation for this class was generated from the following file: