Function Karana::Integrators::createIntegrator(const IntegratorType&, size_t, DerivativeFunction, const Integrator::IntegratorOptions *)#
Defined in File Integrator.h
Function Documentation#
-
kc::ks_ptr<Integrator> Karana::Integrators::createIntegrator(const IntegratorType &integrator_type, size_t nstates, DerivativeFunction deriv_fn, const Integrator::IntegratorOptions *options = nullptr)#
Factory method for creating ODE Integrator instances.
- Parameters:
integrator_type – the type of integrator to create
nstates – the length of the states vector
deriv_fn – the derivative function
options – options for the integrator
- Returns:
a new ODE Integrator instance