Template Class EulerIntegrator

Inheritance Relationships

Base Type

Class Documentation

template<system_state S>
class EulerIntegrator : public diffeq::core::AbstractIntegrator<S>

Forward Euler integrator.

First-order explicit method. Simple but often unstable.

Order: 1 Stability: Poor for stiff problems Usage: Educational purposes, simple problems

Public Types

using base_type = core::AbstractIntegrator<S>
using state_type = typename base_type::state_type
using time_type = typename base_type::time_type
using value_type = typename base_type::value_type
using system_function = typename base_type::system_function

Public Functions

inline explicit EulerIntegrator(system_function sys)
inline virtual void step(state_type &state, time_type dt) override