TPCCLIB
Loading...
Searching...
No Matches
MERTWI Struct Reference

#include <libtpcmodel.h>

Data Fields

unsigned int n
 
unsigned int m
 
uint64_t a
 
uint64_t um
 
uint64_t lm
 
uint64_t mt [TPCCLIB_MERTWI_NN]
 
uint64_t mti
 

Detailed Description

Struct needed in functions for Mersenne Twister MT19937. Contents are initiated in seed functions.

Definition at line 46 of file libtpcmodel.h.

Field Documentation

◆ a

uint64_t MERTWI::a

Constant MATRIX_A, set by seed function.

Definition at line 52 of file libtpcmodel.h.

Referenced by mertwiInit().

◆ lm

uint64_t MERTWI::lm

Constant LM, least significant 31 bits, set by seed function.

Definition at line 56 of file libtpcmodel.h.

Referenced by mertwiInit(), and mertwiRandomInt64().

◆ m

unsigned int MERTWI::m

Constant M, set by seed function.

Definition at line 50 of file libtpcmodel.h.

Referenced by mertwiInit(), and mertwiRandomInt64().

◆ mt

uint64_t MERTWI::mt[TPCCLIB_MERTWI_NN]

The array for the state vector

Definition at line 58 of file libtpcmodel.h.

Referenced by mertwiInitByArray64(), mertwiInitWithSeed64(), and mertwiRandomInt64().

◆ mti

uint64_t MERTWI::mti

Index of mt array; mti==NN+1 means mt[NN] is not initialized

Definition at line 60 of file libtpcmodel.h.

Referenced by mertwiInit(), mertwiInitWithSeed64(), and mertwiRandomInt64().

◆ n

unsigned int MERTWI::n

Constant N, set to by seed function.

Definition at line 48 of file libtpcmodel.h.

Referenced by mertwiInit(), mertwiInitByArray64(), mertwiInitWithSeed64(), and mertwiRandomInt64().

◆ um

uint64_t MERTWI::um

Constant UM, most significant 33 bits, set by seed function.

Definition at line 54 of file libtpcmodel.h.

Referenced by mertwiInit(), and mertwiRandomInt64().


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