ADMB Documentation
-a65f1c97
|
Description not yet available. More...
Go to the source code of this file.
Macros | |
#define | IA1 1366 |
#define | IA2 4561 |
#define | IA3 8121 |
#define | IC1 150889 |
#define | IC2 51349 |
#define | IC3 28411 |
#define | M3 134456 |
Functions | |
double | auto_rand (long int &idum, int reset) |
Random number generator. More... | |
double | randn (long int &n) |
Returns a random number. More... | |
void | reinitialize_auto_rand () |
Description not yet available. More... | |
Variables | |
constexpr int | M1 = 714025 |
constexpr int | M2 = 243000 |
constexpr float | RM1 = 1.0f / M1 |
constexpr float | RM2 = 1.0f / M2 |
Description not yet available.
Definition in file ranfill.cpp.
#define IA1 1366 |
Definition at line 32 of file ranfill.cpp.
Referenced by auto_rand().
#define IA2 4561 |
Definition at line 53 of file ranfill.cpp.
Referenced by auto_rand().
#define IA3 8121 |
Definition at line 43 of file ranfill.cpp.
Referenced by auto_rand().
#define IC1 150889 |
Definition at line 33 of file ranfill.cpp.
Referenced by auto_rand().
#define IC2 51349 |
Definition at line 54 of file ranfill.cpp.
Referenced by auto_rand().
#define IC3 28411 |
Definition at line 44 of file ranfill.cpp.
Referenced by auto_rand().
#define M3 134456 |
Definition at line 42 of file ranfill.cpp.
Referenced by auto_rand().
double auto_rand | ( | long int & | idum, |
int | reset | ||
) |
Random number generator.
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 7
Definition at line 84 of file ranfill.cpp.
Referenced by dvar_matrix::colfill_randu(), dmatrix::colfill_randu(), dvar_matrix::colfill_randu_ni(), dmatrix::colfill_randu_ni(), dvector::fill_randbi(), dvar_vector::fill_randbi(), dvector::fill_randbi_ni(), dvar_vector::fill_randbi_ni(), dvector::fill_randu(), dvar_vector::fill_randu(), dvector::fill_randu_ni(), dvar_vector::fill_randu_ni(), randn(), reinitialize_auto_rand(), dvar_matrix::rowfill_randu(), dmatrix::rowfill_randu(), dvar_matrix::rowfill_randu_ni(), and dmatrix::rowfill_randu_ni().
double randn | ( | long int & | n | ) |
void reinitialize_auto_rand | ( | ) |
Description not yet available.
Definition at line 71 of file ranfill.cpp.
Referenced by dvar_matrix::colfill_randn(), dmatrix::colfill_randn(), dvar_matrix::colfill_randu(), dmatrix::colfill_randu(), dvector::fill_randbi(), dvar_vector::fill_randbi(), dvector::fill_randn(), dvar_vector::fill_randn(), dvar_matrix::fill_randn(), dmatrix::fill_randn(), d3_array::fill_randn(), dvar3_array::fill_randn(), dvector::fill_randu(), dvar_vector::fill_randu(), dvar_matrix::fill_randu(), dmatrix::fill_randu(), d3_array::fill_randu(), dvar3_array::fill_randu(), dvar_matrix::rowfill_randn(), dmatrix::rowfill_randn(), dvar_matrix::rowfill_randu(), and dmatrix::rowfill_randu().
constexpr int M1 = 714025 |
Definition at line 29 of file ranfill.cpp.
Referenced by auto_rand().
constexpr int M2 = 243000 |
Definition at line 50 of file ranfill.cpp.
Referenced by auto_rand().
constexpr float RM1 = 1.0f / M1 |
Definition at line 39 of file ranfill.cpp.
Referenced by auto_rand().
constexpr float RM2 = 1.0f / M2 |
Definition at line 60 of file ranfill.cpp.
Referenced by auto_rand().
Generated on Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5 |