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

Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template make_adaptive_range

boost::numeric::odeint::make_adaptive_range — Factory function to construct a single pass range of adaptive iterators. A range is here a pair of adaptive_iterator.

Synopsis

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


template<typename Stepper, typename System, typename State> 
  std::pair< adaptive_iterator< Stepper, System, State >, adaptive_iterator< Stepper, System, State > > 
  make_adaptive_range(Stepper stepper, System system, State & x, 
                      typename traits::time_type< Stepper >::type t_start, 
                      typename traits::time_type< Stepper >::type t_end, 
                      typename traits::time_type< Stepper >::type dt);

Description

Parameters:

dt

The initial time step.

stepper

The stepper to use during the iteration.

system

The system function (ODE) to solve.

t_end

The end time, at which the iteration should stop.

t_start

The initial time.

x

The initial state.

Returns:

The adaptive range.


PrevUpHomeNext