#include "aurostd_xrandom.h"
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <sys/time.h>
#include <unistd.h>
#include "aurostd.h"
#include "aurostd_automatic_template.h"
#include "aurostd_xscalar.h"
Go to the source code of this file.
Namespaces | |
namespace | aurostd |
Functions | |
long int | aurostd::_random_initialize (long int _num) |
long int | aurostd::_random_initialize () |
double | aurostd::ran0 () |
double | aurostd::ran1 () |
double | aurostd::ran2 () |
double | aurostd::ran3 () |
double | aurostd::ran () |
template<class utype> | |
utype | aurostd::uniform (const utype &x) |
template<class utype> | |
utype | aurostd::uniform (const utype &x, const utype &y) |
double | aurostd::gaussian () |
template<class utype> | |
utype | aurostd::gaussian (const utype &sigma) |
template<class utype> | |
utype | aurostd::gaussian (const utype &mean, const utype &sigma) |
double | aurostd::expdev () |
template<class utype> | |
utype | aurostd::expdev (const utype &lambda) |
double | aurostd::laplacedev () |
template<class utype> | |
utype | aurostd::laplacedev (const utype &a) |
template<class utype> | |
utype | aurostd::laplacedev (const utype &a, const utype &lambda) |
Variables | |
static long int | _idum [1] |
#define _AUROSTD_XRANDOM_CPP_ |
Definition at line 9 of file aurostd_xrandom.cpp.
#define XXEND 1 |
Definition at line 25 of file aurostd_xrandom.cpp.
#define RAN3 |
Definition at line 30 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_IA 16807 |
Definition at line 63 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_IM 2147483647 |
Definition at line 64 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_AM (1.0 / _AUROSTD_XRANDOM_RAN0_IM) |
Definition at line 65 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_IQ 127773 |
Definition at line 66 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_IR 2836 |
Definition at line 67 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN0_MASK 123459876 |
Definition at line 68 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_IA 16807 |
Definition at line 93 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_IM 2147483647 |
Definition at line 94 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_AM (1.0 / _AUROSTD_XRANDOM_RAN1_IM) |
Definition at line 95 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_IQ 127773 |
Definition at line 96 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_IR 2836 |
Definition at line 97 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_NTAB 32 |
Definition at line 98 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_EPS 1.2e-7 |
Definition at line 99 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN1_RNMX (1.0 - _AUROSTD_XRANDOM_RAN1_EPS) |
Definition at line 100 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IM1 2147483563 |
Definition at line 157 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IM2 2147483399 |
Definition at line 158 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_AM (1.0 / _AUROSTD_XRANDOM_RAN2_IM1) |
Definition at line 159 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IMM1 (_AUROSTD_XRANDOM_RAN2_IM1 - 1) |
Definition at line 160 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IA1 40014 |
Definition at line 161 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IA2 40692 |
Definition at line 162 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IQ1 53668 |
Definition at line 163 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IQ2 52774 |
Definition at line 164 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IR1 12211 |
Definition at line 165 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_IR2 3791 |
Definition at line 166 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_NTAB 32 |
Definition at line 167 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_NDIV (1 + _AUROSTD_XRANDOM_RAN2_IMM1 / _AUROSTD_XRANDOM_RAN2_NTAB) |
Definition at line 168 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_EPS 1.2e-7 |
Definition at line 169 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN2_RNMX (1.0 - _AUROSTD_XRANDOM_RAN2_EPS) |
Definition at line 170 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN3_MBIG 1000000000 |
Definition at line 239 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN3_MSEED 161803398 |
Definition at line 240 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN3_MZ 0 |
Definition at line 241 of file aurostd_xrandom.cpp.
#define _AUROSTD_XRANDOM_RAN3_FAC (1.0 / _AUROSTD_XRANDOM_RAN3_MBIG) |
Definition at line 242 of file aurostd_xrandom.cpp.
#define AST_TEMPLATE | ( | utype | ) |
Definition at line 340 of file aurostd_xrandom.cpp.
#define AST_TEMPLATE | ( | utype | ) |
Definition at line 340 of file aurostd_xrandom.cpp.
|
static |
Definition at line 31 of file aurostd_xrandom.cpp.