#include <AdamsBashforth_fwd.hpp>
Integrator class for AB methods.
| starting_method_t | Types of the underlying starting method, required to get first num_steps values. |
num_steps stage Runge Kutta method, which might not always be correct. Predefined methods that are called by name, such as ExplicitMultistep::AB5(), have correct initial methods. Definition at line 60 of file AdamsBashforth_fwd.hpp.
Collaboration diagram for mm::AdamsBashforth< Scalar, num_steps >::Integrator< func_t, initial_method_t >:Public Member Functions | |
| Integrator (const AdamsBashforth< scalar_t, num_steps > &method, const initial_method_t &initial_method, const func_t &func, scalar_t t0, scalar_t t_max, scalar_t dt, Eigen::VectorXd y0) | |
| Constructs stepper with given initial method. More... | |
| iterator | begin () |
| Creates stepper at positioned at initial value. More... | |
| const_iterator | cbegin () |
| Same as Integrator::begin(). More... | |
| iterator | end () |
Creates an invalid stepper at positioned past the last step, meant to be used for comparison it == end() only. More... | |
| const_iterator | cend () |
| Same as Integrator::end(). More... | |
Public Types | |
| typedef IterationStep | iterator |
| iterator type More... | |
| typedef IterationStep | const_iterator |
| const iterator type More... | |
Classes | |
| class | IterationStep |
| Class representing a step in the integration process. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Integrator &integrator) |
| Output information about this integrator. More... | |
Private Attributes | |
| const initial_method_t | initial_method_ |
method used for first num_steps steps More... | |
| const AdamsBashforth< scalar_t, num_steps > | method_ |
| method used for all next steps More... | |
| scalar_t | t0_ |
| start time More... | |
| scalar_t | dt_ |
| time step More... | |
| int | max_steps |
| number of steps More... | |
| Eigen::VectorXd | y0_ |
| initial value More... | |
| const func_t & | func_ |
| function to integrate More... | |
|
inline |
Constructs stepper with given initial method.
It is recommended to use the AdamsBashforth::solve() factory method to construct this object.
Definition at line 74 of file AdamsBashforth_fwd.hpp.
|
inline |
Creates stepper at positioned at initial value.
Definition at line 171 of file AdamsBashforth_fwd.hpp.
|
inline |
Same as Integrator::begin().
Definition at line 174 of file AdamsBashforth_fwd.hpp.
|
inline |
Same as Integrator::end().
Definition at line 181 of file AdamsBashforth_fwd.hpp.
|
inline |
Creates an invalid stepper at positioned past the last step, meant to be used for comparison it == end() only.
Definition at line 178 of file AdamsBashforth_fwd.hpp.
|
friend |
Output information about this integrator.
Definition at line 184 of file AdamsBashforth_fwd.hpp.
|
private |
time step
Definition at line 64 of file AdamsBashforth_fwd.hpp.
|
private |
function to integrate
Definition at line 67 of file AdamsBashforth_fwd.hpp.
|
private |
method used for first num_steps steps
Definition at line 61 of file AdamsBashforth_fwd.hpp.
|
private |
number of steps
Definition at line 65 of file AdamsBashforth_fwd.hpp.
|
private |
method used for all next steps
Definition at line 62 of file AdamsBashforth_fwd.hpp.
|
private |
start time
Definition at line 63 of file AdamsBashforth_fwd.hpp.
|
private |
initial value
Definition at line 66 of file AdamsBashforth_fwd.hpp.