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

◆ GK_MKRANDOM

#define GK_MKRANDOM (   FPRFX,
  RNGT,
  VALT 
)

The generator for the rand() related routines. \ \params RNGT the datatype that defines the range of values over which\ random numbers will be generated\ \params VALT the datatype that defines the contents of the array to \ be permuted by randArrayPermute() \ \params FPRFX the function prefix \

Definition at line 23 of file gk_mkrandom.h.

◆ GK_MKRANDOM_PROTO

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

Definition at line 111 of file gk_mkrandom.h.

n
int n
Definition: BiCGSTAB_simple.cpp:1
p
float * p
Definition: Tutorial_Map_using.cpp:9
max
#define max(a, b)
Definition: datatypes.h:20


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:47