Displaying 1 result from an estimated 1 matches for "lorenz_run_r_wrapp".
Did you mean:
lorenz_run_r_wrapper
2006 Dec 02
1
Trouble passing arrays to C code
...ouble x0, double y0, double z0, double h, int steps,
double *res_x, double *res_y, double *res_z)
The function works, as I've tested it from within C itself and the
results it gives are accurate. In order to integrate it with R, I've
written the following C wrapper function:
void lorenz_run_R_wrapper(double *x0, double *y0, double *z0, double
*h, double *steps,
double *res_x, double *res_y, double *res_z) {
lorenz_run(*x0, *y0, *z0, *h, *steps, res_x, res_y, res_z);
}
The corresponding R wrapper function is:
lorenz_run <- function(x0,y0,z0,h,steps) {
returned_data = .C("lore...