LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::opt::de::MT19937 Class Reference

#include <line/opt/de/mt19937.h>

Public Member Functions

 MT19937 (std::uint64_t seed_value)
void seed (std::uint64_t value)
 NumPy legacy scalar seeding (init_genrand, or little-endian words).
void init_genrand (std::uint32_t value)
void init_by_array (const std::vector< std::uint32_t > &key)
std::uint32_t next_uint32 ()
 Next tempered word, exactly MT19937.nextUint32 in the MATLAB port.
const std::array< std::uint32_t, state_size > & state_key () const
std::size_t position () const

Static Public Attributes

static constexpr std::size_t state_size = 624

Detailed Description

Definition at line 31 of file mt19937.h.

Constructor & Destructor Documentation

◆ MT19937()

line::opt::de::MT19937::MT19937 ( std::uint64_t seed_value)
inlineexplicit

Definition at line 35 of file mt19937.h.

References seed().

Member Function Documentation

◆ init_by_array()

void line::opt::de::MT19937::init_by_array ( const std::vector< std::uint32_t > & key)
inline

Definition at line 61 of file mt19937.h.

References init_genrand(), line::InputError::InputError(), and state_size.

Referenced by seed().

◆ init_genrand()

void line::opt::de::MT19937::init_genrand ( std::uint32_t value)
inline

Definition at line 51 of file mt19937.h.

References state_size.

Referenced by init_by_array(), and seed().

◆ next_uint32()

std::uint32_t line::opt::de::MT19937::next_uint32 ( )
inline

Next tempered word, exactly MT19937.nextUint32 in the MATLAB port.

Definition at line 93 of file mt19937.h.

References state_size.

◆ position()

std::size_t line::opt::de::MT19937::position ( ) const
inline

Definition at line 123 of file mt19937.h.

◆ seed()

void line::opt::de::MT19937::seed ( std::uint64_t value)
inline

NumPy legacy scalar seeding (init_genrand, or little-endian words).

Definition at line 38 of file mt19937.h.

References init_by_array(), and init_genrand().

Referenced by MT19937().

◆ state_key()

const std::array< std::uint32_t, state_size > & line::opt::de::MT19937::state_key ( ) const
inline

Definition at line 122 of file mt19937.h.

Member Data Documentation

◆ state_size

std::size_t line::opt::de::MT19937::state_size = 624
staticconstexpr

Definition at line 33 of file mt19937.h.

Referenced by init_by_array(), init_genrand(), and next_uint32().


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