odestep Class Template Reference

#include <odestep.h>

Inheritance diagram for odestep:

gsl_rk8pd gsl_rk8pd_fast gsl_rkck gsl_rkck_fast

Detailed Description

template<class param_t, class func_t, class vec_t = ovector_view>
class odestep< param_t, func_t, vec_t >

ODE stepper base [abstract base].

Note:
This base class does not actually perform any ODE solving use gsl_rkck or gsl_rk8pd.

Definition at line 40 of file odestep.h.


Public Member Functions

virtual int get_order ()
 Return the order of the ODE stepper.
virtual int step (double x, double h, size_t n, vec_t &y, vec_t &dydx, vec_t &yout, vec_t &yerr, vec_t &dydx_out, param_t &pa, func_t &derivs)=0
 Perform an integration step.

Protected Attributes

int order
 The order of the ODE stepper.

Member Function Documentation

virtual int step ( double  x,
double  h,
size_t  n,
vec_t &  y,
vec_t &  dydx,
vec_t &  yout,
vec_t &  yerr,
vec_t &  dydx_out,
param_t &  pa,
func_t &  derivs 
) [pure virtual]

Perform an integration step.

Given initial value of the n-dimensional function in y and the derivative in dydx (which must generally be computed beforehand) at the point x, take a step of size h giving the result in yout, the uncertainty in yerr, and the new derivative in dydx_out (at x+h) using function derivs to calculate derivatives. Implementations which do not calculate yerr and/or dydx_out do not reference these variables so that a blank vec_t can be given. All of the implementations allow yout=y and dydx_out=dydx if necessary.

Implemented in gsl_rk8pd, gsl_rk8pd_fast, gsl_rkck, and gsl_rkck_fast.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page