#include <gslsolver.h>
Inheritance diagram for GslSolver:
Public Types | |
typedef int(*) | Function (double t, const double y[], double f[], void *params) |
Public Member Functions | |
double | stepSize () const |
void | setStepSize (double stepSize) |
void | setDimension (int dimension) |
void | setToleranceAbs (double toleranceAbs) |
void | setToleranceRel (double toleranceRel) |
virtual void | setFunction (Function function) |
void | setParams (void *params) |
void | doCalcFn (double *t, double y[], double f[]=0) |
bool | doEvolve (double *t, double t1, double y[], double yerr[]) |
QString | solverType () const |
int | dimension () const |
Function | function () const |
void * | params () const |
double | toleranceAbs () const |
double | toleranceRel () const |
double | localError () const |
double | localErrorRatio () const |
const QString & | name () const |
void | setName (const QString &name) |
typedef int(*) Function(double t, const double y[], double f[], void *params) [inherited] |
Callback function type
double stepSize | ( | ) | const [inline] |
Get step size
Reimplemented from GslGenericSolver.
void setStepSize | ( | double | stepSize | ) | [inline] |
Set step size
Reimplemented from GslGenericSolver.
void setDimension | ( | int | dimension | ) | [inline, virtual, inherited] |
Set ODE dimension
Reimplemented from Solver.
void setToleranceAbs | ( | double | toleranceAbs | ) | [inline, virtual, inherited] |
Set absolute allowed local tolerance
Reimplemented from Solver.
void setToleranceRel | ( | double | toleranceRel | ) | [inline, virtual, inherited] |
Set relative allowed local tolerance
Reimplemented from Solver.
virtual void setFunction | ( | Function | function | ) | [inline, virtual, inherited] |
Set callback function
void setParams | ( | void * | params | ) | [inline, virtual, inherited] |
Set callback function params
Reimplemented from Solver.
void doCalcFn | ( | double * | t, | |
double | y[], | |||
double | f[] = 0 | |||
) | [virtual, inherited] |
Calculate function value
Implements Solver.
bool doEvolve | ( | double * | t, | |
double | t1, | |||
double | y[], | |||
double | yerr[] | |||
) | [virtual, inherited] |
QString solverType | ( | ) | const [inline, inherited] |
Get solver type
int dimension | ( | ) | const [inline, inherited] |
Get ODE dimension
Function function | ( | ) | const [inline, inherited] |
Get callback function
void* params | ( | ) | const [inline, inherited] |
Get callback function params
double toleranceAbs | ( | ) | const [inline, inherited] |
Get absolute allowed local tolerance
double toleranceRel | ( | ) | const [inline, inherited] |
Get relative allowed local tolerance
double localError | ( | ) | const [inline, inherited] |
Get error estimation from last step
double localErrorRatio | ( | ) | const [inline, inherited] |
Get local tolerance calculated at last step
const QString& name | ( | ) | const [inline, inherited] |
Returns name of the object
void setName | ( | const QString & | name | ) | [inline, inherited] |
Set name of the object