|
ROOT
ROOT project
|
The virtual mother stepper class which defines constructor and method in common for all the methods. More...
#include <stepper_def.hpp>


Public Member Functions | |
| StepperBase (std::function< double(double)> fun, bool aitken_mode) | |
| Constructor for virtual Stepper class, which will be inherited by the daughters. | |
| virtual | ~StepperBase ()=default |
| Eigen::Vector2d | step (Eigen::Vector2d previous_step) |
| Method handling all the steps involved in computing the new guess. | |
Protected Member Functions | |
| virtual Eigen::Vector2d | compute_step (Eigen::Vector2d)=0 |
| Virtual function to compute the step for the method -> overridden by all the methods. | |
| Eigen::Vector2d | aitken_step (Eigen::Vector2d previous_iter) |
| Method to handle the computation of a step using Aitken's acceleration. | |
Protected Attributes | |
| std::function< double(double)> | function |
| Function to compute the root of. | |
| bool | aitken_requirement |
| Option to use Aitken's acceleration. | |
The virtual mother stepper class which defines constructor and method in common for all the methods.
| StepperBase< T >::StepperBase | ( | std::function< double(double)> | fun, |
| bool | aitken_mode | ||
| ) |
Constructor for virtual Stepper class, which will be inherited by the daughters.
| fun | Function to compute the root of |
| aitken_mode | Option to apply or not the Aitken's acceleration |
|
virtualdefault |
|
protected |
Method to handle the computation of a step using Aitken's acceleration.
| previous_iter | 2-dimensional vector storing x(i-1) and f(x(i-1)) |
|
protectedpure virtual |
Virtual function to compute the step for the method -> overridden by all the methods.
| previous_iteration | 2-dimensional vector storing x(i-1) and f(x(i-1)) - previous guesses |
Implemented in ChordsStepper< T >, BisectionStepper< T >, NewtonRaphsonStepper< T >, FixedPointStepper< T >, NewtonRaphsonStepper< T >, FixedPointStepper< T >, ChordsStepper< T >, and BisectionStepper< T >.
| Eigen::Vector2d StepperBase< T >::step | ( | Eigen::Vector2d | previous_step | ) |
Method handling all the steps involved in computing the new guess.
| previous_step | 2-dimensional vector storing x(i-1) and f(x(i-1)) previous guesses of the method |
|
protected |
Option to use Aitken's acceleration.
|
protected |
Function to compute the root of.