Solvers
Collection of numerical solvers
Types
| Name | Description |
|---|---|
| RK4_Step_Functor | Functor executing a single Runge–Kutta 4 integration step. |
Functions
| Name | Description |
|---|---|
| apply_k_step | Component-wise RK4 update for a single k-step. |
Function Details
apply_k_step
template <size_t I, typename State> host device inline void apply_k_step(State& next_state, const State& current_state, const State& k_step, float factor)
Component-wise RK4 update for a single k-step.
-
I - Current tuple index (compile-time recursion).
-
State - Tuple type storing state variables.
-
next_state - Output state receiving the update.
-
current_state - State at the beginning of the step.
-
k_step - Derivative estimate for the current stage.
-
factor - Scaling factor applied to k_step.