alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::engine::cpu::TinyMTengine Struct Reference

Implementation of std::UniformRandomBitGenerator for TinyMT32. More...

#include <Engine.hpp>

Public Types

using result_type = std::uint32_t
 

Public Member Functions

 TinyMTengine ()
 
 TinyMTengine (std::uint32_t const &seedValue)
 
void discard (unsigned long long)
 
auto operator() () -> result_type
 
void seed (result_type value=default_seed())
 

Static Public Member Functions

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

Public Attributes

tinymt32_t prng
 

Detailed Description

Implementation of std::UniformRandomBitGenerator for TinyMT32.

Definition at line 14 of file Engine.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 16 of file Engine.hpp.

Constructor & Destructor Documentation

◆ TinyMTengine() [1/2]

alpaka::rand::engine::cpu::TinyMTengine::TinyMTengine ( std::uint32_t const &  seedValue)
inline

Definition at line 33 of file Engine.hpp.

◆ TinyMTengine() [2/2]

alpaka::rand::engine::cpu::TinyMTengine::TinyMTengine ( )
inline

Definition at line 38 of file Engine.hpp.

Member Function Documentation

◆ default_seed()

static constexpr auto alpaka::rand::engine::cpu::TinyMTengine::default_seed ( ) -> result_type
inlinestaticconstexpr

Definition at line 18 of file Engine.hpp.

◆ discard()

void alpaka::rand::engine::cpu::TinyMTengine::discard ( unsigned long long  )
inline

Definition at line 58 of file Engine.hpp.

◆ max()

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

Definition at line 53 of file Engine.hpp.

◆ min()

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

Definition at line 48 of file Engine.hpp.

◆ operator()()

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

Definition at line 43 of file Engine.hpp.

◆ seed()

void alpaka::rand::engine::cpu::TinyMTengine::seed ( result_type  value = default_seed())
inline

Definition at line 23 of file Engine.hpp.

Member Data Documentation

◆ prng

tinymt32_t alpaka::rand::engine::cpu::TinyMTengine::prng

Definition at line 64 of file Engine.hpp.


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