RK4_Step_Functor
template<typename RHS, typename State> struct RK4_Step_Functor
Functor executing a single Runge–Kutta 4 integration step.
-
RHS - Right-hand-side functor computing derivatives.
-
State - Tuple type representing the neuron state.
Operators
| Name | Description |
|---|---|
| operator() | Applies RK4 integration to a zipped state/input tuple. |
Functions
| Name | Description |
|---|---|
| RK4_Step_Functor | Constructs the functor with simulation parameters. |
Operator Details
operator()
template<typename Tuple> host device /** * Applies RK4 integration to a zipped state/input tuple. * @param t_zip Tuple containing the current state and input value. */ void operator()(Tuple t_zip) const
Applies RK4 integration to a zipped state/input tuple.
-
t_zip - Tuple containing the current state and input value.
Function Details
RK4_Step_Functor
RK4_Step_Functor(float t, float dt, RHS rhs)
Constructs the functor with simulation parameters.
-
t - Current simulation time.
-
dt - Time step size.
-
rhs - Right-hand-side functor instance.