Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mt19937-1.cpp File Reference

#include <stdio.h>

Include dependency graph for mt19937-1.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define N   624
#define M   397
#define MATRIX_A   0x9908b0df
#define UPPER_MASK   0x80000000
#define LOWER_MASK   0x7fffffff
#define TEMPERING_MASK_B   0x9d2c5680
#define TEMPERING_MASK_C   0xefc60000
#define TEMPERING_SHIFT_U(y)   (y >> 11)
#define TEMPERING_SHIFT_S(y)   (y << 7)
#define TEMPERING_SHIFT_T(y)   (y << 15)
#define TEMPERING_SHIFT_L(y)   (y >> 18)

Functions

void sgenrand (unsigned long seed)
 Initializing the array with a seed. More...

void lsgenrand (unsigned long seed_array[])
 Initializing the array with a long seed. More...

double genrand ()
 generating reals. More...


Variables

unsigned long mt [N]
int mti = N+1


Define Documentation

#define LOWER_MASK   0x7fffffff
 

Definition at line 44 of file mt19937-1.cpp.

#define M   397
 

Definition at line 41 of file mt19937-1.cpp.

#define MATRIX_A   0x9908b0df
 

Definition at line 42 of file mt19937-1.cpp.

#define N   624
 

Definition at line 40 of file mt19937-1.cpp.

#define TEMPERING_MASK_B   0x9d2c5680
 

Definition at line 47 of file mt19937-1.cpp.

#define TEMPERING_MASK_C   0xefc60000
 

Definition at line 48 of file mt19937-1.cpp.

#define TEMPERING_SHIFT_L( y )   (y >> 18)
 

Definition at line 52 of file mt19937-1.cpp.

Referenced by genrand().

#define TEMPERING_SHIFT_S( y )   (y << 7)
 

Definition at line 50 of file mt19937-1.cpp.

Referenced by genrand().

#define TEMPERING_SHIFT_T( y )   (y << 15)
 

Definition at line 51 of file mt19937-1.cpp.

Referenced by genrand().

#define TEMPERING_SHIFT_U( y )   (y >> 11)
 

Definition at line 49 of file mt19937-1.cpp.

Referenced by genrand().

#define UPPER_MASK   0x80000000
 

Definition at line 43 of file mt19937-1.cpp.


Function Documentation

double genrand ( )
 

generating reals.

Definition at line 94 of file mt19937-1.cpp.

void lsgenrand ( unsigned long seed_array[] )
 

Initializing the array with a long seed.

Definition at line 82 of file mt19937-1.cpp.

void sgenrand ( unsigned long seed )
 

Initializing the array with a seed.

Definition at line 59 of file mt19937-1.cpp.

Referenced by genrand(), AlephROOTExManager::initialize(), AlephExManager::initialize(), and AlephEpioExManager::initialize().


Variable Documentation

unsigned long mt [static]
 

Definition at line 54 of file mt19937-1.cpp.

int mti = N+1 [static]
 

Definition at line 55 of file mt19937-1.cpp.


Generated at Wed Jun 18 17:20:42 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001