PPL Logo

conv-core/random.C File Reference

Go to the source code of this file.

Functions

 CpvStaticDeclare (int, nstreams)
 CpvStaticDeclare (CrnStream, _defaultStream)
void CrnInit (void)
void CrnInitStream (CrnStream *genptr, unsigned int seed, int type)
double CrnDouble (CrnStream *genptr)
int CrnInt (CrnStream *genptr)
float CrnFloat (CrnStream *genptr)
void CrnSrand (unsigned int seed)
int CrnRand (void)
double CrnDrand (void)

Variables

unsigned int _prime_list []
unsigned int _PARAMLIST [3][2]


Function Documentation

CpvStaticDeclare ( int  ,
nstreams   
)

CpvStaticDeclare ( CrnStream  ,
_defaultStream   
)

void CrnInitStream ( CrnStream genptr,
unsigned int  seed,
int  type 
)

Definition at line 68 of file random.C.

References _PARAMLIST, _prime_list, CrnDouble(), rngen_::multiplier, rngen_::prime, and rngen_::state.

Referenced by CrnInit(), CrnSrand(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

double CrnDouble ( CrnStream genptr  ) 

Definition at line 106 of file random.C.

References rngen_::state.

Referenced by CrnDrand(), CrnFloat(), CrnInitStream(), CrnInt(), and randVal().

Here is the caller graph for this function:

int CrnInt ( CrnStream genptr  ) 

Definition at line 113 of file random.C.

References CrnDouble().

Referenced by CrnRand().

Here is the call graph for this function:

Here is the caller graph for this function:

float CrnFloat ( CrnStream genptr  ) 

Definition at line 118 of file random.C.

References CrnDouble().

Here is the call graph for this function:

void CrnSrand ( unsigned int  seed  ) 

Definition at line 123 of file random.C.

References CrnInitStream().

Referenced by CldModuleInit().

Here is the call graph for this function:

Here is the caller graph for this function:

int CrnRand ( void   ) 

double CrnDrand ( void   ) 

Definition at line 133 of file random.C.

References CrnDouble().

Referenced by chooseProc(), and SIMPLE_POLYMORPH_REDUCTION().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

unsigned int _prime_list

Definition at line 138 of file random.C.

Referenced by CrnInitStream().

unsigned int _PARAMLIST[3][2]

Initial value:

 {{0x87b0b0fdU, 0x27bb2ee6U}, 
                      {0xe78b6955U,0x2c6fe96eU},
                      {0x31a53f85U,0x369dea0fU}}

Definition at line 35 of file random.C.

Referenced by CrnInitStream().


Generated on Mon Sep 21 08:02:37 2020 for Charm++ by  doxygen 1.5.5