AbstractRootFinder< 1 > Class Reference#
|
DiFfRG
|
Public Member Functions |
Protected Types |
Protected Member Functions |
Protected Attributes |
List of all members
DiFfRG::AbstractRootFinder< 1 > Class Referenceabstract
#include <root_finding.hh>
Inheritance diagram for DiFfRG::AbstractRootFinder< 1 >:
Public Member Functions | |
| AbstractRootFinder (const FUN &f, const double abs_tol=1e-4, const int max_iter=1000) | |
| AbstractRootFinder (const FUN_ARR &f, const double abs_tol=1e-4, const int max_iter=1000) | |
| void | set_abs_tol (const double abs_tol) |
| void | set_max_iter (const uint max_iter) |
| uint | get_iter () const |
| double | search () |
Protected Types | |
| using | FUN = std::function<bool(const double)> |
| using | FUN_ARR = std::function<bool(const std::array<double, 1> &)> |
Protected Member Functions | |
| virtual std::array< double, 1 > | search_impl ()=0 |
Protected Attributes | |
| FUN_ARR | f |
| double | abs_tol |
| uint | max_iter |
| uint | iter |
Member Typedef Documentation
◆ FUN
|
protected |
◆ FUN_ARR
|
protected |
Constructor & Destructor Documentation
◆ AbstractRootFinder() [1/2]
|
inline |
◆ AbstractRootFinder() [2/2]
|
inline |
Member Function Documentation
◆ get_iter()
|
inline |
◆ search()
|
inline |
◆ search_impl()
|
protectedpure virtual |
Implemented in DiFfRG::BisectionRootFinder.
◆ set_abs_tol()
|
inline |
◆ set_max_iter()
|
inline |
Member Data Documentation
◆ abs_tol
|
protected |
◆ f
|
protected |
◆ iter
|
protected |
◆ max_iter
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/root_finding.hh
Generated by