View source: R/shift_state_indices.R
R starts counting vector indices at 1, c++ starts at 0, so reduce all state numbers in the Cpp function definition by 1
1 | shift_state_indices(ode_def, n = -1)
|
ode_def |
ODE definition |
n |
add/substract what number, default = -1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.