Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <iter_track.h>
Public Member Functions | |
iter_track () | |
~iter_track () | |
void | clear () |
void | set_tol (double tol) |
double | bracket_width () const |
bool | lgConverged () |
double | root () const |
int | init_bracket (double x1, double fx1, double x2, double fx2) |
void | add (double x, double fx) |
double | next_val () |
double | next_val (double max_rel_step) |
double | deriv (int n, double &sigma) const |
double | deriv (double &sigma) const |
double | deriv (int n) const |
double | deriv () const |
double | zero_fit (int n, double &sigma) const |
double | zero_fit (double &sigma) const |
double | zero_fit (int n) const |
double | zero_fit () const |
int | in_bounds (double x) const |
void | print_status () const |
void | print_history () const |
Private Member Functions | |
void | p_clear0 () |
void | p_clear1 () |
void | p_set_root (double x) |
double | p_x (int ip) const |
double | p_y (int ip) const |
double | p_midpoint () const |
double | p_numerator (double dab, double dcb, double fa, double fb, double fc) |
double | p_denominator (double fa, double fb, double fc) |
Private Attributes | |
vector< pair< double, double > > | p_history |
double | p_result |
double | p_tol |
int | p_a |
int | p_b |
int | p_c |
bool | p_lgRootFound |
|
inline |
|
inline |
|
inline |
References p_b, p_history, and p_set_root().
Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().
|
inline |
References p_a, p_c, and p_x().
Referenced by ConvEdenIoniz(), ConvTempEdenIoniz(), lgConverged(), and lgConvTemp().
|
inline |
References p_clear0(), and p_clear1().
Referenced by ConvEdenIoniz(), and ConvTempEdenIoniz().
double iter_track::deriv | ( | int | n, |
double & | sigma | ||
) | const |
References ASSERT, linfit(), min(), p_history, p_x(), and p_y().
Referenced by ConvEdenIoniz(), and lgConvTemp().
|
inline |
|
inline |
|
inline |
References p_a, p_c, and p_x().
Referenced by ConvEdenIoniz().
|
inline |
References p_a, p_c, p_history, p_set_root(), sign3(), and x2.
Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().
|
inline |
References bracket_width(), p_lgRootFound, p_midpoint(), p_result, and p_tol.
Referenced by Amsterdam_Method().
double iter_track::next_val | ( | ) |
References p_a, p_b, p_c, p_denominator(), p_midpoint(), p_numerator(), p_set_root(), p_tol, p_x(), p_y(), and safe_div().
Referenced by Amsterdam_Method(), ConvEdenIoniz(), ConvTempEdenIoniz(), and next_val().
|
inline |
References min(), next_val(), p_history, safe_div(), and sign().
|
inlineprivate |
References p_history.
Referenced by clear(), and ~iter_track().
|
inlineprivate |
|
inlineprivate |
Referenced by next_val().
|
inlineprivate |
References p_a, p_c, and p_x().
Referenced by lgConverged(), and next_val().
|
inlineprivate |
Referenced by next_val().
|
inlineprivate |
References p_lgRootFound, and p_result.
Referenced by add(), init_bracket(), and next_val().
|
inlineprivate |
References p_history.
Referenced by bracket_width(), deriv(), in_bounds(), next_val(), p_midpoint(), print_history(), print_status(), and zero_fit().
|
inlineprivate |
References p_history.
Referenced by deriv(), next_val(), print_history(), print_status(), and zero_fit().
|
inline |
References fprintf(), ioQQQ, p_history, p_x(), and p_y().
Referenced by ConvEdenIoniz(), and ConvTempEdenIoniz().
|
inline |
|
inline |
References p_result.
Referenced by Amsterdam_Method().
|
inline |
References p_tol.
Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().
double iter_track::zero_fit | ( | int | n, |
double & | sigma | ||
) | const |
|
inline |
|
inline |
|
inline |
References p_history.
Referenced by zero_fit().
|
private |
Referenced by bracket_width(), in_bounds(), init_bracket(), next_val(), p_clear1(), p_midpoint(), and print_status().
|
private |
Referenced by add(), next_val(), p_clear1(), and print_status().
|
private |
Referenced by bracket_width(), in_bounds(), init_bracket(), next_val(), p_clear1(), p_midpoint(), and print_status().
|
private |
Referenced by add(), deriv(), init_bracket(), next_val(), p_clear0(), p_clear1(), p_x(), p_y(), print_history(), and zero_fit().
|
private |
Referenced by lgConverged(), p_clear1(), and p_set_root().
|
private |
Referenced by lgConverged(), p_clear1(), p_set_root(), and root().
|
private |
Referenced by lgConverged(), next_val(), p_clear1(), and set_tol().