Macros
gk_mkrandom.h File Reference

Templates for portable random number generation. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GK_MKRANDOM(FPRFX, RNGT, VALT)
 
#define GK_MKRANDOM_PROTO(FPRFX, RNGT, VALT)
 

Detailed Description

Templates for portable random number generation.

Date
Started 5/17/07
Author
George
Version
$Id: gk_mkrandom.h 10711 2011-08-31 22:23:04Z karypis $ 

Definition in file gk_mkrandom.h.

Macro Definition Documentation

#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 \

Definition at line 23 of file gk_mkrandom.h.

#define GK_MKRANDOM_PROTO (   FPRFX,
  RNGT,
  VALT 
)
Value:
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);\
#define max(a, b)
Definition: datatypes.h:20
int n
float * p

Definition at line 115 of file gk_mkrandom.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:30