Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
One dimensional root solver algorithm. More...
#include <bayeux/mygsl/one_dimensional_root_finding.h>
Classes | |
class | at_step_action |
struct | default_step_action |
Public Types | |
enum | mode_t { MODE_NULL = 0, MODE_F = 1, MODE_FDF = 2 } |
Public Member Functions | |
void | unset_step_action () |
void | set_default_step_action () |
void | set_step_action (at_step_action &action_) |
bool | is_fsolver () const |
bool | is_fdfsolver () const |
bool | is_initialized () const |
const best_value & | get_root () const |
std::string | get_name () const |
void | set_debug (bool debug_=true) |
bool | is_debug () const |
size_t | get_iter () const |
size_t | get_max_iter () const |
double | get_epsabs () const |
bool | is_converged () const |
one_dimensional_root_solver (bool debug_=false) | |
virtual | ~one_dimensional_root_solver () |
void | init (const i_unary_function &sys_, const std::string &method_=BRENT_METHOD_LABEL) |
void | init (const i_unary_function_with_derivative &sys_, const std::string &method_=STEFFENSON_METHOD_LABEL) |
void | reset () |
int | solve (double epsabs_, double a_, double b_) |
Static Public Member Functions | |
static double | g_function (double x_, void *params_) |
static double | g_dfunction (double x_, void *params_) |
static void | g_fdfunction (double x_, void *params_, double *y_, double *dy_) |
static best_value | solve (const i_unary_function &sys_, double epsabs_, double a_, double b_, const std::string &method_=BRENT_METHOD_LABEL) |
static best_value | solve (const i_unary_function_with_derivative &sys_, double epsabs_, double a_, double b_, const std::string &method_=STEFFENSON_METHOD_LABEL) |
Static Public Attributes | |
static const std::string | BISECTION_METHOD_LABEL |
static const std::string | FALSEPOS_METHOD_LABEL |
static const std::string | BRENT_METHOD_LABEL |
static const std::string | NEWTON_METHOD_LABEL |
static const std::string | SECANT_METHOD_LABEL |
static const std::string | STEFFENSON_METHOD_LABEL |
static const size_t | DEFAULT_MAX_ITER |
static const double | DEFAULT_EPSABS |
Protected Member Functions | |
void | _at_step_hook (int status_, size_t iter_, double a_, double b_, double c_) |
One dimensional root solver algorithm.
mygsl::one_dimensional_root_solver::one_dimensional_root_solver | ( | bool | debug_ = false | ) |
|
virtual |
|
protected |
|
static |
|
static |
|
static |
double mygsl::one_dimensional_root_solver::get_epsabs | ( | ) | const |
size_t mygsl::one_dimensional_root_solver::get_iter | ( | ) | const |
size_t mygsl::one_dimensional_root_solver::get_max_iter | ( | ) | const |
std::string mygsl::one_dimensional_root_solver::get_name | ( | ) | const |
const best_value& mygsl::one_dimensional_root_solver::get_root | ( | ) | const |
void mygsl::one_dimensional_root_solver::init | ( | const i_unary_function & | sys_, |
const std::string & | method_ = BRENT_METHOD_LABEL |
||
) |
void mygsl::one_dimensional_root_solver::init | ( | const i_unary_function_with_derivative & | sys_, |
const std::string & | method_ = STEFFENSON_METHOD_LABEL |
||
) |
bool mygsl::one_dimensional_root_solver::is_converged | ( | ) | const |
bool mygsl::one_dimensional_root_solver::is_debug | ( | ) | const |
bool mygsl::one_dimensional_root_solver::is_fdfsolver | ( | ) | const |
bool mygsl::one_dimensional_root_solver::is_fsolver | ( | ) | const |
bool mygsl::one_dimensional_root_solver::is_initialized | ( | ) | const |
void mygsl::one_dimensional_root_solver::reset | ( | ) |
void mygsl::one_dimensional_root_solver::set_debug | ( | bool | debug_ = true | ) |
void mygsl::one_dimensional_root_solver::set_default_step_action | ( | ) |
void mygsl::one_dimensional_root_solver::set_step_action | ( | at_step_action & | action_ | ) |
int mygsl::one_dimensional_root_solver::solve | ( | double | epsabs_, |
double | a_, | ||
double | b_ | ||
) |
|
static |
|
static |
void mygsl::one_dimensional_root_solver::unset_step_action | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |