hp2FEM  0.1
Defines
src/metis-5.0/GKlib/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.

Defines

#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 10461 2011-07-01 18:49:05Z karypis $ 

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

#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);\
 All Classes Files Functions Variables Typedefs Friends Defines