See below.
> On Feb 7, 2017, at 5:00 PM, Christopher Fisher <
fish...@miamioh.edu> wrote:
>
> Hi Sebastian-
> Out of curiosity, do you know whether its possible to integrate across multiple variables? I tried extending my model to the convolution of 3 variables and received the following error:
>
> first argument to integrate_ode_rk45 must be the name of a function with signature (real, real[], real[], real[], int[]) : real[]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here's the example from page 262 of the manual:
real[] sho(real t,
real[] y,
real[] theta,
real[] x_r,
int[] x_i) {
real dydt[2];
dydt[1] = y[2];
dydt[2] = -y[1] - theta[1] * y[2];
return dydt;
}
sho is a function with the appropriate signature. I don't know what your x is
supposed to be, and here's the call in the code:
y_hat = integrate_ode_rk45(sho, y0, t0, ts, theta, x_r, x_i);
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> To post to this group, send email to
stan-...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.