#include <odestep.h>
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. |
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, gsl_rkck_fast, gsl_rkf45, and gsl_rkf45_fast.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page