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

"Tiny" state mersenne twister implementation More...

#include <RandStdLib.hpp>

Public Types

using result_type = TinyMTengine::result_type
 

Public Member Functions

 TinyMersenneTwister ()=default
 
ALPAKA_FN_HOST TinyMersenneTwister (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

"Tiny" state mersenne twister implementation

repository: github.com/MersenneTwister-Lab/TinyMT

license: 3-clause BSD

Author
Mutsuo Saito (Hiroshima University)Tokio University.
Makoto Matsumoto (The University of Tokyo)

size of state: 28 bytes (127 bits?!)

Definition at line 85 of file RandStdLib.hpp.

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ TinyMersenneTwister() [1/2]

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

◆ TinyMersenneTwister() [2/2]

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

Definition at line 92 of file RandStdLib.hpp.

Member Function Documentation

◆ max()

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

Definition at line 109 of file RandStdLib.hpp.

◆ min()

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

Definition at line 104 of file RandStdLib.hpp.

◆ operator()()

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

Definition at line 114 of file RandStdLib.hpp.


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