Function Karana::Integrators::createIntegrator(const IntegratorType&, size_t, size_t, DerivativeFunction, const Integrator::IntegratorOptions *)

Function Karana::Integrators::createIntegrator(const IntegratorType&, size_t, size_t, DerivativeFunction, const Integrator::IntegratorOptions *)#

Function Documentation#

kc::ks_ptr<Integrator> Karana::Integrators::createIntegrator(const IntegratorType &integrator_type, size_t num_states, size_t num_q_states, DerivativeFunction deriv_fn, const Integrator::IntegratorOptions *options = nullptr)#

Factory method for creating ODE Integrator instances.

Parameters:
  • integrator_type – the type of integrator to create

  • num_states – the length of the states vector

  • num_q_states – Number of leading Q states; zero means no partition is specified.

  • deriv_fn – the derivative function

  • options – options for the integrator

Returns:

a new ODE Integrator instance