Solve ODE with Runge-Kutta method (RK4)
solve_ode(ode_ptr, input, init, par = 0)
pointer (externalptr) to C++ function
Input matrix. 1st column specifies the time points
Initial conditions
Parameters defining the ODE (parsed to ode_ptr)
Matrix with solution
The external point should be created with the function targeted::specify_ode
.
specify_ode
example(specify_ode)
#> Warning: ‘specify_ode’ has a help file but no examples