Skip to content
Prev 388 / 696 Next

[R-sig-dyn-mod] defining and passing dynamically allocated arrays in C with deSolve

Hi Martin,

you could introduce your array as static double. Then write a C function
to fill the array. You have to call this function by .C() before running
ode(). Probably you will have to assign a fixed size to your static
array. But you do not need to fill all elements of the array and in your
derivatives function you can determine the number of elements which are
read from your array by a parameter that you pass.


Best regards,
Daniel
On Do, 2015-03-12 at 14:24 +0000, Walker, Martin wrote: