cloudy
trunk
|
Go to the source code of this file.
Data Structures | |
class | t_lfact |
Macros | |
#define | N 624 |
#define | M 397 |
#define | MATRIX_A 0x9908b0dfUL /* constant vector a */ |
#define | UMASK 0x80000000UL /* most significant w-r bits */ |
#define | LMASK 0x7fffffffUL /* least significant r bits */ |
#define | MIXBITS(u, v) ( ((u) & UMASK) | ((v) & LMASK) ) |
#define | TWIST(u, v) ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL)) |
Functions | |
double | polevl (double x, const double coef[], int N) |
double | p1evl (double x, const double coef[], int N) |
double | chbevl (double, const double[], int) |
bool | linfit (long n, double x[], double y[], double &a, double &siga, double &b, double &sigb) |
double | factorial (long n) |
double | lfactorial (long n) |
complex< double > | cdgamma (complex< double > x) |
double | bessel_j0 (double x) |
double | bessel_y0 (double x) |
double | bessel_j1 (double x) |
double | bessel_y1 (double x) |
double | bessel_jn (int n, double x) |
double | bessel_yn (int n, double x) |
double | bessel_k0 (double x) |
double | bessel_k0_scaled (double x) |
double | bessel_k1 (double x) |
double | bessel_k1_scaled (double x) |
double | bessel_i0 (double x) |
double | bessel_i0_scaled (double x) |
double | bessel_i1 (double x) |
double | bessel_i1_scaled (double x) |
double | ellpk (double x) |
double | expn (int n, double x) |
void | init_genrand (unsigned long s) |
void | init_by_array (unsigned long init_key[], int key_length) |
static void | next_state (void) |
unsigned long | genrand_int32 (void) |
long | genrand_int31 (void) |
double | genrand_real1 (void) |
double | genrand_real2 (void) |
double | genrand_real3 (void) |
double | genrand_res53 (void) |
Variables | |
static const double | pre_factorial [NPRE_FACTORIAL] |
static const double | b0_PP [7] |
static const double | b0_PQ [7] |
static const double | b0_QP [8] |
static const double | b0_QQ [7] |
static const double | b0_YP [8] |
static const double | b0_YQ [7] |
static const double | DR1 = 5.78318596294678452118e0 |
static const double | DR2 = 3.04712623436620863991e1 |
static double | b0_RP [4] |
static double | b0_RQ [8] |
static const double | TWOOPI = 2./PI |
static const double | SQ2OPI = sqrt(2./PI) |
static const double | PIO4 = PI/4. |
static const double | b1_RP [4] |
static const double | b1_RQ [8] |
static const double | b1_PP [7] |
static const double | b1_PQ [7] |
static const double | b1_QP [8] |
static const double | b1_QQ [7] |
static const double | b1_YP [6] |
static const double | b1_YQ [8] |
static const double | Z1 = 1.46819706421238932572E1 |
static const double | Z2 = 4.92184563216946036703E1 |
static const double | THPIO4 = 3.*PI/4. |
static const double | k0_A [] |
static const double | k0_B [] |
static const double | k1_A [] |
static const double | k1_B [] |
static const double | i0_A [] |
static const double | i0_B [] |
static double | i1_A [] |
static double | i1_B [] |
static const double | elk_P [] |
static const double | elk_Q [] |
static const double | C1 = 1.3862943611198906188e0 |
static const double | MAXLOG = log(DBL_MAX) |
static const double | BIG = 1.44115188075855872E+17 |
static unsigned long | state [N] |
static int | nleft = 1 |
static int | initf = 0 |
static unsigned long * | next |
#define LMASK 0x7fffffffUL /* least significant r bits */ |
Definition at line 2455 of file thirdparty.cpp.
#define M 397 |
Definition at line 2452 of file thirdparty.cpp.
Referenced by DGEMM(), DGER(), DTRSM(), iso_state_lifetime(), and next_state().
#define MATRIX_A 0x9908b0dfUL /* constant vector a */ |
Definition at line 2453 of file thirdparty.cpp.
Definition at line 2456 of file thirdparty.cpp.
#define N 624 |
Definition at line 2451 of file thirdparty.cpp.
Referenced by init_by_array(), init_genrand(), next_state(), and polevl().
#define TWIST | ( | u, | |
v | |||
) | ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL)) |
Definition at line 2457 of file thirdparty.cpp.
Referenced by next_state().
#define UMASK 0x80000000UL /* most significant w-r bits */ |
Definition at line 2454 of file thirdparty.cpp.
double bessel_i0 | ( | double | x) |
Definition at line 1700 of file thirdparty.cpp.
References chbevl(), DEBUG_ENTRY, i0_A, and i0_B.
Referenced by bessel_k0(), and bessel_k0_scaled().
double bessel_i0_scaled | ( | double | x) |
Definition at line 1717 of file thirdparty.cpp.
References chbevl(), DEBUG_ENTRY, i0_A, and i0_B.
double bessel_i1 | ( | double | x) |
Definition at line 1882 of file thirdparty.cpp.
References chbevl(), DEBUG_ENTRY, i1_A, and i1_B.
Referenced by bessel_k1(), and bessel_k1_scaled().
double bessel_i1_scaled | ( | double | x) |
Definition at line 1903 of file thirdparty.cpp.
References chbevl(), DEBUG_ENTRY, i1_A, and i1_B.
double bessel_j0 | ( | double | x) |
Definition at line 683 of file thirdparty.cpp.
References b0_PP, b0_PQ, b0_QP, b0_QQ, b0_RP, b0_RQ, DEBUG_ENTRY, DR1, DR2, p1evl(), PIO4, polevl(), and SQ2OPI.
Referenced by bessel_jn(), and bessel_y0().
double bessel_j1 | ( | double | x) |
Definition at line 914 of file thirdparty.cpp.
References b1_PP, b1_PQ, b1_QP, b1_QQ, b1_RP, b1_RQ, DEBUG_ENTRY, p1evl(), polevl(), SQ2OPI, THPIO4, Z1, and Z2.
Referenced by bessel_jn(), and bessel_y1().
double bessel_jn | ( | int | n, |
double | x | ||
) |
Definition at line 1017 of file thirdparty.cpp.
References bessel_j0(), bessel_j1(), DEBUG_ENTRY, and sign().
double bessel_k0 | ( | double | x) |
Definition at line 1333 of file thirdparty.cpp.
References bessel_i0(), cdEXIT, chbevl(), DEBUG_ENTRY, ioQQQ, k0_A, and k0_B.
Referenced by S62_Therm_ave_coll_str().
double bessel_k0_scaled | ( | double | x) |
Definition at line 1356 of file thirdparty.cpp.
References bessel_i0(), cdEXIT, chbevl(), DEBUG_ENTRY, ioQQQ, k0_A, and k0_B.
double bessel_k1 | ( | double | x) |
Definition at line 1509 of file thirdparty.cpp.
References bessel_i1(), cdEXIT, chbevl(), DEBUG_ENTRY, ioQQQ, k1_A, and k1_B.
Referenced by S62_Therm_ave_coll_str().
double bessel_k1_scaled | ( | double | x) |
Definition at line 1531 of file thirdparty.cpp.
References bessel_i1(), cdEXIT, chbevl(), DEBUG_ENTRY, ioQQQ, k1_A, and k1_B.
double bessel_y0 | ( | double | x) |
Definition at line 721 of file thirdparty.cpp.
References b0_PP, b0_PQ, b0_QP, b0_QQ, b0_YP, b0_YQ, bessel_j0(), cdEXIT, DEBUG_ENTRY, ioQQQ, p1evl(), PIO4, polevl(), SQ2OPI, and TWOOPI.
Referenced by bessel_yn().
double bessel_y1 | ( | double | x) |
Definition at line 941 of file thirdparty.cpp.
References b1_PP, b1_PQ, b1_QP, b1_QQ, b1_YP, b1_YQ, bessel_j1(), cdEXIT, DEBUG_ENTRY, ioQQQ, p1evl(), polevl(), SQ2OPI, THPIO4, and TWOOPI.
Referenced by bessel_yn().
double bessel_yn | ( | int | n, |
double | x | ||
) |
Definition at line 1151 of file thirdparty.cpp.
References bessel_y0(), bessel_y1(), cdEXIT, DEBUG_ENTRY, ioQQQ, and sign().
complex<double> cdgamma | ( | complex< double > | x) |
Definition at line 411 of file thirdparty.cpp.
References DEBUG_ENTRY.
Referenced by DoSutherland(), and Hypergeometric2F1().
|
inline |
Definition at line 2376 of file thirdparty.cpp.
Referenced by bessel_i0(), bessel_i0_scaled(), bessel_i1(), bessel_i1_scaled(), bessel_k0(), bessel_k0_scaled(), bessel_k1(), and bessel_k1_scaled().
double ellpk | ( | double | x) |
Definition at line 2015 of file thirdparty.cpp.
References C1, cdEXIT, DEBUG_ENTRY, elk_P, elk_Q, ioQQQ, and polevl().
Referenced by StarkCollTransProb_VF01().
double expn | ( | int | n, |
double | x | ||
) |
expn, returns exponential integral,
n | is order, 1 for first integral integral |
x | is argument, must be positive |
Definition at line 2094 of file thirdparty.cpp.
References BIG, cdEXIT, DEBUG_ENTRY, EULER, factorial(), ioQQQ, is_odd(), MAXLOG, and powi().
Referenced by SanityCheckBegin().
double factorial | ( | long | n) |
factorial: compute n! by lookup in table of predefined factorials
Definition at line 340 of file thirdparty.cpp.
References cdEXIT, DEBUG_ENTRY, ioQQQ, NPRE_FACTORIAL, and pre_factorial.
Referenced by bhG(), bhg(), DoSutherland(), expn(), fsff(), and hrii().
long genrand_int31 | ( | void | ) |
Definition at line 2549 of file thirdparty.cpp.
References next, next_state(), and nleft.
unsigned long genrand_int32 | ( | void | ) |
Definition at line 2532 of file thirdparty.cpp.
References next, next_state(), and nleft.
Referenced by genrand_res53().
double genrand_real1 | ( | void | ) |
Definition at line 2566 of file thirdparty.cpp.
References next, next_state(), and nleft.
double genrand_real2 | ( | void | ) |
Definition at line 2584 of file thirdparty.cpp.
References next, next_state(), and nleft.
double genrand_real3 | ( | void | ) |
Definition at line 2602 of file thirdparty.cpp.
References next, next_state(), and nleft.
Referenced by RandGauss().
double genrand_res53 | ( | void | ) |
Definition at line 2620 of file thirdparty.cpp.
References genrand_int32().
void init_by_array | ( | unsigned long | init_key[], |
int | key_length | ||
) |
Definition at line 2484 of file thirdparty.cpp.
References init_genrand(), initf, N, nleft, and state.
void init_genrand | ( | unsigned long | s) |
Definition at line 2465 of file thirdparty.cpp.
References initf, N, nleft, and state.
Referenced by init_by_array(), next_state(), ParseAtomH2(), ParseAtomISO(), and ParseSet().
double lfactorial | ( | long | n) |
lfactorial: compute log10(n!), this sroutine cahes its results for efficiency
Definition at line 383 of file thirdparty.cpp.
References cdEXIT, DEBUG_ENTRY, t_lfact::get_lfact(), Singleton< t_lfact >::Inst(), and ioQQQ.
Referenced by bhg_log(), bhG_mx(), hrii_log(), and log10_fsff().
bool linfit | ( | long | n, |
double | x[], | ||
double | y[], | ||
double & | a, | ||
double & | siga, | ||
double & | b, | ||
double & | sigb | ||
) |
Definition at line 45 of file thirdparty.cpp.
References DEBUG_ENTRY, and pow2().
Referenced by ConvEdenIoniz().
|
static |
Definition at line 2510 of file thirdparty.cpp.
References init_genrand(), initf, M, N, next, nleft, state, and TWIST.
Referenced by genrand_int31(), genrand_int32(), genrand_real1(), genrand_real2(), and genrand_real3().
|
inline |
Definition at line 2302 of file thirdparty.cpp.
Referenced by bessel_j0(), bessel_j1(), bessel_y0(), and bessel_y1().
|
inline |
Definition at line 2280 of file thirdparty.cpp.
References N.
Referenced by bessel_j0(), bessel_j1(), bessel_y0(), bessel_y1(), and ellpk().
|
static |
Definition at line 591 of file thirdparty.cpp.
Referenced by bessel_j0(), and bessel_y0().
|
static |
Definition at line 601 of file thirdparty.cpp.
Referenced by bessel_j0(), and bessel_y0().
|
static |
Definition at line 611 of file thirdparty.cpp.
Referenced by bessel_j0(), and bessel_y0().
|
static |
Definition at line 622 of file thirdparty.cpp.
Referenced by bessel_j0(), and bessel_y0().
|
static |
Definition at line 660 of file thirdparty.cpp.
Referenced by bessel_j0().
|
static |
Definition at line 667 of file thirdparty.cpp.
Referenced by bessel_j0().
|
static |
Definition at line 633 of file thirdparty.cpp.
Referenced by bessel_y0().
|
static |
Definition at line 644 of file thirdparty.cpp.
Referenced by bessel_y0().
|
static |
Definition at line 846 of file thirdparty.cpp.
Referenced by bessel_j1(), and bessel_y1().
|
static |
Definition at line 856 of file thirdparty.cpp.
Referenced by bessel_j1(), and bessel_y1().
|
static |
Definition at line 866 of file thirdparty.cpp.
Referenced by bessel_j1(), and bessel_y1().
|
static |
Definition at line 877 of file thirdparty.cpp.
Referenced by bessel_j1(), and bessel_y1().
|
static |
Definition at line 827 of file thirdparty.cpp.
Referenced by bessel_j1().
|
static |
Definition at line 834 of file thirdparty.cpp.
Referenced by bessel_j1().
|
static |
Definition at line 888 of file thirdparty.cpp.
Referenced by bessel_y1().
|
static |
Definition at line 897 of file thirdparty.cpp.
Referenced by bessel_y1().
|
static |
Definition at line 2092 of file thirdparty.cpp.
|
static |
Definition at line 2013 of file thirdparty.cpp.
Referenced by ellpk(), Hydcs123(), and ILAENV().
|
static |
Definition at line 656 of file thirdparty.cpp.
Referenced by bessel_j0().
|
static |
Definition at line 658 of file thirdparty.cpp.
Referenced by bessel_j0().
|
static |
Definition at line 1983 of file thirdparty.cpp.
Referenced by ellpk().
|
static |
Definition at line 1998 of file thirdparty.cpp.
Referenced by ellpk().
|
static |
Definition at line 1631 of file thirdparty.cpp.
Referenced by bessel_i0(), and bessel_i0_scaled().
|
static |
Definition at line 1671 of file thirdparty.cpp.
Referenced by bessel_i0(), and bessel_i0_scaled().
|
static |
Definition at line 1814 of file thirdparty.cpp.
Referenced by bessel_i1(), and bessel_i1_scaled().
|
static |
Definition at line 1853 of file thirdparty.cpp.
Referenced by bessel_i1(), and bessel_i1_scaled().
|
static |
Definition at line 2461 of file thirdparty.cpp.
Referenced by init_by_array(), init_genrand(), and next_state().
|
static |
Definition at line 1285 of file thirdparty.cpp.
Referenced by bessel_k0(), and bessel_k0_scaled().
|
static |
Definition at line 1305 of file thirdparty.cpp.
Referenced by bessel_k0(), and bessel_k0_scaled().
|
static |
Definition at line 1459 of file thirdparty.cpp.
Referenced by bessel_k1(), and bessel_k1_scaled().
|
static |
Definition at line 1480 of file thirdparty.cpp.
Referenced by bessel_k1(), and bessel_k1_scaled().
|
static |
Definition at line 2091 of file thirdparty.cpp.
Referenced by expn().
|
static |
Definition at line 2462 of file thirdparty.cpp.
Referenced by genrand_int31(), genrand_int32(), genrand_real1(), genrand_real2(), genrand_real3(), and next_state().
|
static |
Definition at line 2460 of file thirdparty.cpp.
Referenced by genrand_int31(), genrand_int32(), genrand_real1(), genrand_real2(), genrand_real3(), init_by_array(), init_genrand(), next_state(), and partx().
|
static |
Definition at line 681 of file thirdparty.cpp.
Referenced by bessel_j0(), and bessel_y0().
|
static |
Definition at line 165 of file thirdparty.cpp.
Referenced by factorial().
|
static |
Definition at line 680 of file thirdparty.cpp.
Referenced by bessel_j0(), bessel_j1(), bessel_y0(), and bessel_y1().
|
static |
Definition at line 2459 of file thirdparty.cpp.
|
static |
Definition at line 912 of file thirdparty.cpp.
Referenced by bessel_j1(), and bessel_y1().
|
static |
Definition at line 679 of file thirdparty.cpp.
Referenced by bessel_y0(), and bessel_y1().
|
static |
Definition at line 909 of file thirdparty.cpp.
Referenced by bessel_j1().
|
static |
Definition at line 910 of file thirdparty.cpp.
Referenced by bessel_j1().