cloudy trunk
|
Go to the source code of this file.
Data Structures | |
struct | t_usubc |
struct | t_isubc |
Macros | |
#define | S(I_, J_) |
#define | S(I_, J_) |
#define | S(I_, J_) |
Functions | |
STATIC void | calcc (long, realnum *, long, long, int, realnum[]) |
STATIC double | cdasum (long, realnum[], long) |
STATIC void | cdaxpy (long, double, realnum[], long, realnum[], long) |
STATIC void | cdcopy (long, realnum[], long, realnum[], long) |
STATIC void | csscal (long, double, realnum[], long) |
STATIC double | dist (long, realnum[], realnum[]) |
STATIC void | evalf (long, long[], realnum[], long, realnum[], realnum *, long *) |
STATIC void | fstats (double, long, int) |
STATIC void | newpt (long, double, realnum[], realnum[], int, realnum[], int *) |
STATIC void | order (long, realnum[], long *, long *, long *) |
STATIC void | partx (long, long[], realnum[], long *, long[]) |
STATIC void | setstp (long, long, realnum[], realnum[]) |
STATIC void | simplx (long, realnum[], long, long[], long, int, realnum[], realnum *, long *, realnum *, realnum[], long *) |
STATIC void | sortd (long, realnum[], long[]) |
STATIC void | start (long, realnum[], realnum[], long, long[], realnum *, int *) |
STATIC void | subopt (long) |
void | optimize_subplex (long int n, double tol, long int maxnfe, long int mode, realnum scale[], realnum x[], realnum *fx, long int *nfe, realnum work[], long int iwork[], long int *iflag) |
STATIC void | subopt (long int n) |
STATIC void | cdcopy (long int n, realnum dx[], long int incx, realnum dy[], long int incy) |
STATIC void | evalf (long int ns, long int ips[], realnum xs[], long int n, realnum x[], realnum *sfx, long int *nfe) |
STATIC void | setstp (long int nsubs, long int n, realnum deltax[], realnum step[]) |
STATIC void | sortd (long int n, realnum xkey[], long int ix[]) |
STATIC void | partx (long int n, long int ip[], realnum absdx[], long int *nsubs, long int nsvals[]) |
STATIC void | simplx (long int n, realnum step[], long int ns, long int ips[], long int maxnfe, int cmode, realnum x[], realnum *fx, long int *nfe, realnum *s, realnum fs[], long int *iflag) |
STATIC void | fstats (double fx, long int ifxwt, int reset) |
STATIC double | cdasum (long int n, realnum dx[], long int incx) |
STATIC void | csscal (long int n, double da, realnum dx[], long int incx) |
STATIC void | start (long int n, realnum x[], realnum step[], long int ns, long int ips[], realnum *s, int *small) |
STATIC void | order (long int npts, realnum fs[], long int *il, long int *is, long int *ih) |
STATIC double | dist (long int n, realnum x[], realnum y[]) |
STATIC void | calcc (long int ns, realnum *s, long int ih, long int inew, int updatc, realnum c[]) |
STATIC void | newpt (long int ns, double coef, realnum xbase[], realnum xold[], int IntNew, realnum xnew[], int *small) |
STATIC void | cdaxpy (long int n, double da, realnum dx[], long int incx, realnum dy[], long int incy) |
Variables | |
struct t_usubc | usubc |
struct t_isubc | isubc |
#define S | ( | I_, | |
J_ ) |
Definition at line 1105 of file optimize_subplx.cpp.
Referenced by AtomCSInterp(), Badnell_rec_init(), calcc(), cross_section(), DielecRecombRate(), he_1trans(), He_cross_section(), HeCSInterp(), helike_quantum_defect(), HydroCSInterp(), IonCSInterp(), iso_assign_quantum_numbers(), iso_cascade(), iso_cool(), iso_cross_section(), iso_level(), lgCheckMonitors(), lines(), Opacity_iso_photo_cs(), read_SH98_He1_cross_sections(), RT_tau_init(), RT_tau_reset(), SanityCheckBegin(), simplx(), and start().
#define S | ( | I_, | |
J_ ) |
Definition at line 1105 of file optimize_subplx.cpp.
#define S | ( | I_, | |
J_ ) |
Definition at line 1105 of file optimize_subplx.cpp.
Definition at line 1837 of file optimize_subplx.cpp.
References cdaxpy(), cdcopy(), csscal(), DEBUG_ENTRY, S, and STATIC.
Definition at line 1443 of file optimize_subplx.cpp.
References DEBUG_ENTRY, and STATIC.
STATIC void cdaxpy | ( | long int | n, |
double | da, | ||
realnum | dx[], | ||
long int | incx, | ||
realnum | dy[], | ||
long int | incy ) |
Definition at line 2011 of file optimize_subplx.cpp.
References da(), DEBUG_ENTRY, and STATIC.
Definition at line 622 of file optimize_subplx.cpp.
References DEBUG_ENTRY, and STATIC.
References STATIC.
Referenced by calcc(), optimize_subplex(), simplx(), and start().
Definition at line 1515 of file optimize_subplx.cpp.
References da(), DEBUG_ENTRY, and STATIC.
Definition at line 1763 of file optimize_subplx.cpp.
References DEBUG_ENTRY, POW2, and STATIC.
References STATIC.
Referenced by phymir_state< X, Y, NP, NSTR >::lgConvergedRestart(), and simplx().
STATIC void evalf | ( | long int | ns, |
long int | ips[], | ||
realnum | xs[], | ||
long int | n, | ||
realnum | x[], | ||
realnum * | sfx, | ||
long int * | nfe ) |
Definition at line 696 of file optimize_subplx.cpp.
References DEBUG_ENTRY, fstats(), isubc, optimize_func(), STATIC, and usubc.
References STATIC.
Referenced by optimize_subplex(), and simplx().
STATIC void fstats | ( | double | fx, |
long int | ifxwt, | ||
int | reset ) |
Definition at line 1379 of file optimize_subplx.cpp.
References DEBUG_ENTRY, MAX2, MAX3, MIN2, POW2, STATIC, and usubc.
STATIC void newpt | ( | long int | ns, |
double | coef, | ||
realnum | xbase[], | ||
realnum | xold[], | ||
int | IntNew, | ||
realnum | xnew[], | ||
int * | small ) |
Definition at line 1916 of file optimize_subplx.cpp.
References DEBUG_ENTRY, and STATIC.
void optimize_subplex | ( | long int | n, |
double | tol, | ||
long int | maxnfe, | ||
long int | mode, | ||
realnum | scale[], | ||
realnum | x[], | ||
realnum * | fx, | ||
long int * | nfe, | ||
realnum | work[], | ||
long int | iwork[], | ||
long int * | iflag ) |
optimize_subplex is the main driver, and only exposed, routine for the cowan downhill simplex routine
n | |
tol | |
maxnfe | |
mode | |
scale[] | |
x[] | |
*fx | |
*nfe | |
work[] | |
iwork[] | |
*iflag |
Definition at line 64 of file optimize_subplx.cpp.
References cdcopy(), DEBUG_ENTRY, evalf(), fp_equal(), isubc, MAX2, partx(), POW2, setstp(), simplx(), sortd(), subopt(), and usubc.
Referenced by lgOptimize_do().
Definition at line 1682 of file optimize_subplx.cpp.
References DEBUG_ENTRY, and STATIC.
References STATIC.
Referenced by dawson(), FastVoigtH(), and simplx().
STATIC void partx | ( | long int | n, |
long int | ip[], | ||
realnum | absdx[], | ||
long int * | nsubs, | ||
long int | nsvals[] ) |
Definition at line 989 of file optimize_subplx.cpp.
References DEBUG_ENTRY, MIN2, nleft, STATIC, and usubc.
References STATIC.
Referenced by optimize_subplex().
Definition at line 825 of file optimize_subplx.cpp.
References cdasum(), csscal(), DEBUG_ENTRY, MAX2, MIN2, sign(), STATIC, and usubc.
References STATIC.
Referenced by optimize_subplex().
STATIC void simplx | ( | long | , |
realnum | [], | ||
long | , | ||
long | [], | ||
long | , | ||
int | , | ||
realnum | [], | ||
realnum * | , | ||
long * | , | ||
realnum * | , | ||
realnum | [], | ||
long * | ) |
References STATIC.
Referenced by optimize_subplex().
Definition at line 908 of file optimize_subplx.cpp.
References DEBUG_ENTRY, and STATIC.
References STATIC.
Referenced by optimize_subplex().
STATIC void start | ( | long int | n, |
realnum | x[], | ||
realnum | step[], | ||
long int | ns, | ||
long int | ips[], | ||
realnum * | s, | ||
int * | small ) |
Definition at line 1594 of file optimize_subplx.cpp.
References cdcopy(), DEBUG_ENTRY, S, and STATIC.
References STATIC.
Referenced by phymir_state< X, Y, NP, NSTR >::initial_run(), simplx(), t_mole_global::sort(), and t_mole_global::sort().
STATIC void subopt | ( | long int | n | ) |
Definition at line 449 of file optimize_subplx.cpp.
References DEBUG_ENTRY, MIN2, STATIC, and usubc.
STATIC void subopt | ( | long | ) |
References STATIC.
Referenced by optimize_subplex().
struct t_isubc isubc |
Referenced by evalf(), optimize_subplex(), and simplx().