Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
iter_track Class Reference

#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
 

Constructor & Destructor Documentation

◆ iter_track()

iter_track::iter_track ( )
inline

References p_clear1().

Here is the call graph for this function:

◆ ~iter_track()

iter_track::~iter_track ( )
inline

References p_clear0().

Here is the call graph for this function:

Member Function Documentation

◆ add()

void iter_track::add ( double x,
double fx )
inline

References p_b, p_history, and p_set_root().

Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().

Here is the call graph for this function:

◆ bracket_width()

double iter_track::bracket_width ( ) const
inline

References p_a, p_c, and p_x().

Referenced by ConvEdenIoniz(), ConvTempEdenIoniz(), lgConverged(), and lgConvTemp().

Here is the call graph for this function:

◆ clear()

void iter_track::clear ( )
inline

References p_clear0(), and p_clear1().

Referenced by ConvEdenIoniz(), and ConvTempEdenIoniz().

Here is the call graph for this function:

◆ deriv() [1/4]

double iter_track::deriv ( ) const
inline

References deriv(), and p_history.

Referenced by deriv(), deriv(), and deriv().

Here is the call graph for this function:

◆ deriv() [2/4]

double iter_track::deriv ( double & sigma) const
inline

References deriv(), and p_history.

Here is the call graph for this function:

◆ deriv() [3/4]

double iter_track::deriv ( int n) const
inline

References deriv().

Here is the call graph for this function:

◆ deriv() [4/4]

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().

Here is the call graph for this function:

◆ in_bounds()

int iter_track::in_bounds ( double x) const
inline

References p_a, p_c, and p_x().

Referenced by ConvEdenIoniz().

Here is the call graph for this function:

◆ init_bracket()

int iter_track::init_bracket ( double x1,
double fx1,
double x2,
double fx2 )
inline

References p_a, p_c, p_history, p_set_root(), sign3(), x1, and x2.

Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().

Here is the call graph for this function:

◆ lgConverged()

bool iter_track::lgConverged ( )
inline

References bracket_width(), p_lgRootFound, p_midpoint(), p_result, and p_tol.

Referenced by Amsterdam_Method().

Here is the call graph for this function:

◆ next_val() [1/2]

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().

Here is the call graph for this function:

◆ next_val() [2/2]

double iter_track::next_val ( double max_rel_step)
inline

References min(), next_val(), p_history, safe_div(), and sign().

Here is the call graph for this function:

◆ p_clear0()

void iter_track::p_clear0 ( )
inlineprivate

References p_history.

Referenced by clear(), and ~iter_track().

◆ p_clear1()

void iter_track::p_clear1 ( )
inlineprivate

References p_a, p_b, p_c, p_history, p_lgRootFound, p_result, p_tol, and set_NaN().

Referenced by clear(), and iter_track().

Here is the call graph for this function:

◆ p_denominator()

double iter_track::p_denominator ( double fa,
double fb,
double fc )
inlineprivate

Referenced by next_val().

◆ p_midpoint()

double iter_track::p_midpoint ( ) const
inlineprivate

References p_a, p_c, and p_x().

Referenced by lgConverged(), and next_val().

Here is the call graph for this function:

◆ p_numerator()

double iter_track::p_numerator ( double dab,
double dcb,
double fa,
double fb,
double fc )
inlineprivate

Referenced by next_val().

◆ p_set_root()

void iter_track::p_set_root ( double x)
inlineprivate

References p_lgRootFound, and p_result.

Referenced by add(), init_bracket(), and next_val().

◆ p_x()

double iter_track::p_x ( int ip) const
inlineprivate

◆ p_y()

double iter_track::p_y ( int ip) const
inlineprivate

◆ print_history()

void iter_track::print_history ( ) const
inline

References fprintf(), ioQQQ, p_history, p_x(), and p_y().

Referenced by ConvEdenIoniz(), and ConvTempEdenIoniz().

Here is the call graph for this function:

◆ print_status()

void iter_track::print_status ( ) const
inline

References dprintf(), ioQQQ, p_a, p_b, p_c, p_x(), and p_y().

Here is the call graph for this function:

◆ root()

double iter_track::root ( ) const
inline

References p_result.

Referenced by Amsterdam_Method().

◆ set_tol()

void iter_track::set_tol ( double tol)
inline

References p_tol.

Referenced by Amsterdam_Method(), ConvEdenIoniz(), and ConvTempEdenIoniz().

◆ zero_fit() [1/4]

double iter_track::zero_fit ( ) const
inline

References p_history, and zero_fit().

Referenced by zero_fit(), zero_fit(), and zero_fit().

Here is the call graph for this function:

◆ zero_fit() [2/4]

double iter_track::zero_fit ( double & sigma) const
inline

References p_history, and zero_fit().

Here is the call graph for this function:

◆ zero_fit() [3/4]

double iter_track::zero_fit ( int n) const
inline

References zero_fit().

Here is the call graph for this function:

◆ zero_fit() [4/4]

double iter_track::zero_fit ( int n,
double & sigma ) const

References ASSERT, linfit(), min(), p_history, p_x(), and p_y().

Here is the call graph for this function:

Member Data Documentation

◆ p_a

int iter_track::p_a
private

◆ p_b

int iter_track::p_b
private

Referenced by add(), next_val(), p_clear1(), and print_status().

◆ p_c

int iter_track::p_c
private

◆ p_history

vector< pair<double,double> > iter_track::p_history
private

◆ p_lgRootFound

bool iter_track::p_lgRootFound
private

Referenced by lgConverged(), p_clear1(), and p_set_root().

◆ p_result

double iter_track::p_result
private

◆ p_tol

double iter_track::p_tol
private

The documentation for this class was generated from the following files: