philsupertramp/game-math
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ODESolver Class Reference

#include <ODESolver.h>

Static Public Member Functions

static ODEResult odeExpEuler (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, const ODEOption &option)
 
static ODEResult ode45 (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, const ODEOption &option)
 
static ODEResult odeTrapez (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, const ODEOption &option)
 
static ODEResult odeBDF2 (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, const ODEOption &option)
 

Detailed Description

Proxy interface class for ODE solvers with static member functions as bridge to solvers.

Member Function Documentation

◆ ode45()

static ODEResult ODESolver::ode45 ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
const ODEOption option 
)
inlinestatic

proxy to ODE45

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
optionsolver options
Returns
ODE45(fun, tInterval, y0, option.h)
Examples
numerics/ode/TestODE45.cpp.

◆ odeBDF2()

static ODEResult ODESolver::odeBDF2 ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
const ODEOption option 
)
inlinestatic

proxy to ODEBDF2

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
optionsolver options
Returns
ODEBDF2(fun, tInterval, y0, option)
Examples
numerics/ode/TestODEBDF2.cpp.

◆ odeExpEuler()

static ODEResult ODESolver::odeExpEuler ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
const ODEOption option 
)
inlinestatic

proxy to ODEExpEuler

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
optionsolver options
Returns
ODEExpEuler(fun, tInterval, y0, option.h)
Examples
numerics/ode/TestExplicitEuler.cpp.

◆ odeTrapez()

static ODEResult ODESolver::odeTrapez ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
const ODEOption option 
)
inlinestatic

proxy to ODETrapez

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
optionsolver options
Returns
ODETrapez(fun, tInterval, y0, option)
Examples
numerics/ode/TestODETrapez.cpp.

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