VNRCW_R 3CW "20 March 2008" "mathcw-1.00"

Table of contents


NAME

vnrcwf_r, vnrcw_r, vnrcwl_r, vnrcww_r, vnrcwq_r, vnrcwll_r, vnrcwdf_r, vnrcwd_r, vnrcwdl_r, vnrcwdll_r - vector of normally-distributed random numbers

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float vnrcwf_r (randcw_state_t state, int n, float u[]);

extern double vnrcw_r (randcw_state_t state, int n, double u[]);

extern long double vnrcwl_r (randcw_state_t state, int n, long double u[]);

extern __float80 vnrcww_r (randcw_state_t state, int n, __float80 u[]);

extern __float128 vnrcwq_r (randcw_state_t state, int n, __float128 u[]);

extern long_long_double vnrcwll_r (randcw_state_t state, int n, long_long_double u[]);

extern decimal_float vnrcwdf_r (randcw_state_t state, int n, decimal_float u[]);

extern decimal_double vnrcwd_r (randcw_state_t state, int n, decimal_double u[]);

extern decimal_long_double vnrcwdl_r (randcw_state_t state, int n, decimal_long_double u[]);

extern decimal_long_long_double vnrcwdll_r (randcw_state_t state, int n,
                                            decimal_long_long_double u[]);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute a vector of normally-distributed random numbers.

The generator state is keep externally in the state argument, a vector of four UINT_LEAST32_T values, most conveniently initialized with incw_r(). This makes the functions thread safe, and allows creation of a practically-unlimited number of independent families of generators, each with its own state.


RETURN VALUES

Return the vector of random numbers.

ERRORS

None.

SEE ALSO

ercw(3CW), ercw_r(3CW), gscw(3CW), incw_r(3CW), llrancw(3CW), llrancw_r(3CW), llrincw(3CW), llrincw_r(3CW), lrancw(3CW), lrancw_r(3CW), lrcw(3CW), lrcw_r(3CW), lrincw(3CW), lrincw_r(3CW), mscw(3CW), nrcw(3CW), nrcw_r(3CW), sccw(3CW), sscw(3CW), urcw(3CW), urcw1(3CW), urcw1_r(3CW), urcw2(3CW), urcw2_r(3CW), urcw3(3CW), urcw3_r(3CW), urcw4(3CW), urcw4_r(3CW), urcw_r(3CW), vercw(3CW), vercw_r(3CW), vllrancw(3CW), vllrancw_r(3CW), vllrincw(3CW), vllrincw_r(3CW), vlrancw(3CW), vlrancw_r(3CW), vlrcw(3CW), vlrcw_r(3CW), vlrincw(3CW), vlrincw_r(3CW), vnrcw(3CW), vurcw(3CW), vurcw1(3CW), vurcw1_r(3CW), vurcw2(3CW), vurcw2_r(3CW), vurcw3(3CW), vurcw3_r(3CW), vurcw4(3CW), vurcw4_r(3CW), vurcw_r(3CW).