Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 47461eefaa.
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template adaptive_iterator

boost::numeric::odeint::adaptive_iterator — ODE Iterator with adaptive step size. The value type of this iterator is the state type of the stepper.

Synopsis

// In header: <boost/numeric/odeint/iterator/adaptive_iterator.hpp>

template<typename Stepper, typename System, typename State> 
class adaptive_iterator {
public:
  // construct/copy/destruct
  adaptive_iterator(Stepper, System, State &, time_type, time_type, time_type);
  adaptive_iterator(Stepper, System, State &);
};

Description

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 the state x at the next time 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 the state type of the stepper. Hence one can only access the state and not the current time.

Template Parameters

  1. typename Stepper

    The stepper type which should be used during the iteration.

  2. typename System

    The type of the system function (ODE) which should be solved.

  3. typename State

    The state type of the ODE.

adaptive_iterator public construct/copy/destruct

  1. adaptive_iterator(Stepper stepper, System sys, State & s, time_type t_start, 
                      time_type t_end, time_type dt);
  2. adaptive_iterator(Stepper stepper, System sys, State & s);

PrevUpHomeNext