...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Home | Libraries | People | FAQ | More |
boost::numeric::odeint::adaptive_time_iterator — ODE Iterator with adaptive step size. The value type of this iterator is a std::pair containing state and time.
// In header: <boost/numeric/odeint/iterator/adaptive_time_iterator.hpp> template<typename Stepper, typename System, typename State> class adaptive_time_iterator { public: // construct/copy/destruct adaptive_time_iterator(Stepper, System, State &, time_type, time_type, time_type); adaptive_time_iterator(Stepper, System, State &); };
Implements an iterator representing the solution of an ODE from t_start to t_end evaluated at steps with an adaptive step size dt. After each iteration the iterator dereferences to a pair containing state and time at the next time point t+dt where dt is controlled by the stepper. This iterator can be used with ControlledSteppers 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_adaptive routine.
adaptive_iterator is a model of single-pass iterator.
The value type of this iterator is a std::pair of state and time of the stepper.