ODE Iterator with constant step size. More...
#include <n_step_time_iterator.hpp>
Public Member Functions | |
n_step_time_iterator (Stepper stepper, System sys, State &s, time_type t, time_type dt, size_t num_of_steps) | |
n_step_time_iterator (Stepper stepper, System sys, State &s) | |
ODE Iterator with constant step size.
The value type of this iterator is a std::pair containing state and time.
Implements an iterator representing the solution of an ODE starting from t with n steps and a constant step size dt. After each iteration the iterator dereferences to a pair of state and time at the next time t+dt. This iterator can be used with Steppers and DenseOutputSteppers and it always makes use of the all the given steppers capabilities. A for_each over such an iterator range behaves similar to the integrate_n_steps routine.
n_step_time_iterator is a model of single-pass iterator.
The value type of this iterator is pair of state and time.
Stepper | The stepper type which should be used during the iteration. |
System | The type of the system function (ODE) which should be solved. |
State | The state type of the ODE. |
|
inline |
|
inline |