Class EulerIntegrator#

Inheritance Relationships#

Base Type#

Class Documentation#

class EulerIntegrator : public Karana::Integrators::Integrator#

The fixed-step Euler one step integrator.

Public Functions

EulerIntegrator(size_t nstates, DerivativeFunction f, const IntegratorOptions *options = nullptr)#

Constructor.

Parameters:
  • nstates – The number of states to integrate.

  • f – The derivative function to calculate the derivative of the states.

  • options – The integrator options.

virtual void hardReset(size_t nstates) override#

Reset the state size.

Parameters:

nstates – the new state size

virtual km::Ktime advanceTo(const km::Ktime &t_end) override#

Method to advance the system state to a specified time.

Parameters:

to_t – the desired end time

Returns:

the actual end time