hp2FEM
0.1
|
Templates for portable random number generation. More...
Go to the source code of this file.
Defines | |
#define | GK_MKRANDOM(FPRFX, RNGT, VALT) |
#define | GK_MKRANDOM_PROTO(FPRFX, RNGT, VALT) |
Templates for portable random number generation.
$Id: gk_mkrandom.h 10461 2011-07-01 18:49:05Z karypis $
#define GK_MKRANDOM | ( | FPRFX, | |
RNGT, | |||
VALT | |||
) |
The generator for the rand() related routines. \ RNGT the datatype that defines the range of values over which\ random numbers will be generated\ VALT the datatype that defines the contents of the array to \ be permuted by randArrayPermute() \ FPRFX the function prefix \
#define GK_MKRANDOM_PROTO | ( | FPRFX, | |
RNGT, | |||
VALT | |||
) |
void FPRFX ## srand(RNGT seed); \ RNGT FPRFX ## rand(); \ RNGT FPRFX ## randInRange(RNGT max); \ void FPRFX ## randArrayPermute(RNGT n, VALT *p, RNGT nshuffles, int flag);\ void FPRFX ## randArrayPermuteFine(RNGT n, VALT *p, int flag);\