Template Class RK4Integrator

Inheritance Relationships

Base Type

Class Documentation

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

Classical 4th-order Runge-Kutta integrator.

The most famous and widely used fixed-step ODE solver. Excellent balance between accuracy and computational cost.

Order: 4 Stability: Good for non-stiff problems Usage: General-purpose ODE integration

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 RK4Integrator(system_function sys)
inline virtual void step(state_type &state, time_type dt) override