Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ran.cpp File Reference
#include "cddefines.h"
#include "vectorize.h"
#include "vectorize_math.h"
#include "thirdparty.h"
#include "ran.h"
Include dependency graph for ran.cpp:

Classes

union  pund
 
union  punf
 

Functions

STATIC void init_seed (uint64 s, int nRANK, uint64 state[], size_t ns, size_t npack, algo_prng algo)
 
STATIC void convert_double (double *pool, size_t size)
 
STATIC void convert_float (sys_float *pool, size_t size)
 
STATIC void convert_zig (double *pool, size_t size)
 

Variables

t_ran ran (PRNG_XOSHIRO256STARSTAR)
 
static const int ZIGC = 256
 
static const double ZigXN [ZIGC+1]
 
static const double ZigRN [ZIGC]
 
static const double ZigEX2 [ZIGC+1]
 

Function Documentation

STATIC void convert_double ( double *  pool,
size_t  size 
)

References pund::d, DEBUG_ENTRY, and pund::i.

Referenced by t_ran::p_dbl().

STATIC void convert_float ( sys_float pool,
size_t  size 
)

References DEBUG_ENTRY, punf::f, and punf::i.

Referenced by t_ran::p_flt().

STATIC void convert_zig ( double *  pool,
size_t  size 
)

References pund::d, DEBUG_ENTRY, and pund::i.

Referenced by t_ran::p_zig().

STATIC void init_seed ( uint64  s,
int  nRANK,
uint64  state[],
size_t  ns,
size_t  npack,
algo_prng  algo 
)

Variable Documentation

const int ZIGC = 256
static
const double ZigEX2[ZIGC+1]
static

Referenced by t_ran::p_init().

const double ZigRN[ZIGC]
static

Referenced by t_ran::p_init().

const double ZigXN[ZIGC+1]
static

Referenced by t_ran::p_init().