numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Base class of root-finding algorithms for functions. More...
#include <num_collect/roots/function_root_finder_base.h>
Public Types | |
using | function_type = Function |
Type of function of equation. | |
using | variable_type = typename function_type::variable_type |
Type of variables. | |
Public Member Functions | |
function_root_finder_base (logging::log_tag_view tag, const function_type &function=function_type()) | |
Constructor. | |
auto | function () -> function_type & |
Get the function of equation. | |
auto | function () const -> const function_type & |
Get the function of equation. | |
Public Member Functions inherited from num_collect::base::iterative_solver_base< Derived > | |
iterative_solver_base (logging::log_tag_view tag) | |
Constructor. | |
auto | is_stop_criteria_satisfied () const -> bool |
Determine if stopping criteria of the algorithm are satisfied. | |
void | iterate () |
Iterate the algorithm once. | |
void | solve () |
Solve the problem. | |
Public Member Functions inherited from num_collect::logging::logging_mixin | |
logging_mixin (log_tag_view tag) | |
Constructor. | |
template<typename Child > | |
void | configure_child_algorithm_logger_if_exists (Child &child) |
Configure a logger of a child algorithm if exists. | |
auto | logger () const noexcept -> const num_collect::logging::logger & |
Access to the logger. | |
auto | logger () noexcept -> num_collect::logging::logger & |
Access to the logger. | |
Public Member Functions inherited from num_collect::logging::iterations::iteration_logger_mixin< Derived > | |
iteration_logger_mixin ()=default | |
Constructor. | |
void | configure_iteration_logger (num_collect::logging::iterations::iteration_logger< Derived > &iteration_logger) const |
Configure an iteration logger. | |
auto | initialize_iteration_logger () -> num_collect::logging::iterations::iteration_logger< Derived > & |
Get the iteration logger. | |
Private Attributes | |
Function | function_ |
Function of equation. | |
Additional Inherited Members | |
Protected Member Functions inherited from num_collect::base::iterative_solver_base< Derived > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Base class of root-finding algorithms for functions.
Derived | Type of derived class. |
Function | Type of the function of equation. |
Definition at line 35 of file function_root_finder_base.h.
using num_collect::roots::function_root_finder_base< Derived, Function >::function_type = Function |
Type of function of equation.
Definition at line 39 of file function_root_finder_base.h.
using num_collect::roots::function_root_finder_base< Derived, Function >::variable_type = typename function_type::variable_type |
Type of variables.
Definition at line 42 of file function_root_finder_base.h.
|
inlineexplicit |
Constructor.
[in] | tag | Log tag. |
[in] | function | Function of equation. |
Definition at line 50 of file function_root_finder_base.h.
|
inlinenodiscard |
Get the function of equation.
Definition at line 60 of file function_root_finder_base.h.
|
inlinenodiscard |
Get the function of equation.
Definition at line 67 of file function_root_finder_base.h.
|
private |
Function of equation.
Definition at line 73 of file function_root_finder_base.h.