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 an old version of Boost. Click here to view this page for the latest version.
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template rosenbrock4_controller

boost::numeric::odeint::rosenbrock4_controller

Synopsis

// In header: <boost/numeric/odeint/stepper/rosenbrock4_controller.hpp>

template<typename Stepper> 
class rosenbrock4_controller {
public:
  // types
  typedef Stepper                           stepper_type;      
  typedef stepper_type::value_type          value_type;        
  typedef stepper_type::state_type          state_type;        
  typedef stepper_type::wrapped_state_type  wrapped_state_type;
  typedef stepper_type::time_type           time_type;         
  typedef stepper_type::deriv_type          deriv_type;        
  typedef stepper_type::wrapped_deriv_type  wrapped_deriv_type;
  typedef stepper_type::resizer_type        resizer_type;      
  typedef controlled_stepper_tag            stepper_category;  
  typedef rosenbrock4_controller< Stepper > controller_type;   

  // public member functions
   m_atol(atol);
   m_rtol(rtol);
   m_first_step(true);
   m_err_old(0.);
   m_dt_old(0.);
   m_last_rejected(false);
  value_type error(const state_type &, const state_type &, const state_type &);
  value_type last_error(void) const;
  template<typename System> 
    boost::numeric::odeint::controlled_step_result 
    try_step(System, state_type &, time_type &, time_type &);
  template<typename System> 
    boost::numeric::odeint::controlled_step_result 
    try_step(System, const state_type &, time_type &, state_type &, 
             time_type &);
  template<typename StateType> void adjust_size(const StateType &);
  stepper_type & stepper(void);
  const stepper_type & stepper(void) const;

  // private member functions
  template<typename StateIn> bool resize_m_xerr(const StateIn &);
  template<typename StateIn> bool resize_m_xnew(const StateIn &);

  // public data members
   __pad0__;
};

Description

rosenbrock4_controller public member functions

  1.  m_atol(atol);
  2.  m_rtol(rtol);
  3.  m_first_step(true);
  4.  m_err_old(0. 0);
  5.  m_dt_old(0. 0);
  6.  m_last_rejected(false);
  7. value_type error(const state_type & x, const state_type & xold, 
                     const state_type & xerr);
  8. value_type last_error(void) const;
  9. template<typename System> 
      boost::numeric::odeint::controlled_step_result 
      try_step(System sys, state_type & x, time_type & t, time_type & dt);
  10. template<typename System> 
      boost::numeric::odeint::controlled_step_result 
      try_step(System sys, const state_type & x, time_type & t, state_type & xout, 
               time_type & dt);
  11. template<typename StateType> void adjust_size(const StateType & x);
  12. stepper_type & stepper(void);
  13. const stepper_type & stepper(void) const;

rosenbrock4_controller private member functions

  1. template<typename StateIn> bool resize_m_xerr(const StateIn & x);
  2. template<typename StateIn> bool resize_m_xnew(const StateIn & x);

PrevUpHomeNext