Class ode_boost (o2scl)

O2scl : Class List

template<class step_t, class vec_y_t = boost::numeric::ublas::vector<double>, class vec_dydx_t = vec_y_t, class vec_yerr_t = vec_y_t, class func_t = ode_funct, class fp_t = double>
class ode_boost : public o2scl::ode_step<boost::numeric::ublas::vector<double>, boost::numeric::ublas::vector<double>, boost::numeric::ublas::vector<double>, ode_funct, double>

Simple ODE stepper from boost.

This is a simple implementation of the Boost “Error Steppers” into the O2scl framework. The slightly different interface requires a function wrapper (ode_funct_boost) and an extra copy of the state vector. This works with the steppers runge_kutta_cash_karp54, runge_kutta_dopri5, and runge_kutta_fehlberg78. The Boost stepper runge_kutta_cash_karp54 gives identical results to ode_rkck_gsl.

Public Functions

inline ode_boost()
inline virtual ~ode_boost()
inline virtual int step(fp_t x, fp_t h, size_t n, vec_y_t &y, vec_dydx_t &dydx, vec_y_t &yout, vec_yerr_t &yerr, vec_dydx_t &dydx_out, func_t &derivs)

Perform an integration step.

Protected Attributes

step_t stepper

Stepper object.