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

#include <tpcrand.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

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

Definition at line 32 of file tpcrand.h.

Field Documentation

◆ a

uint64_t MERTWI::a

Constant MATRIX_A, set by seed function.

Definition at line 38 of file tpcrand.h.

Referenced by mertwiInit().

◆ lm

uint64_t MERTWI::lm

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

Definition at line 42 of file tpcrand.h.

Referenced by mertwiInit(), and mertwiRandomInt64().

◆ m

unsigned int MERTWI::m

Constant M, set by seed function.

Definition at line 36 of file tpcrand.h.

Referenced by mertwiInit(), and mertwiRandomInt64().

◆ mt

uint64_t MERTWI::mt[TPCCLIB_MERTWI_NN]

The array for the state vector.

Definition at line 44 of file tpcrand.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 46 of file tpcrand.h.

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

◆ n

unsigned int MERTWI::n

Constant N, set to by seed function.

Definition at line 34 of file tpcrand.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 40 of file tpcrand.h.

Referenced by mertwiInit(), and mertwiRandomInt64().


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