-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrays of arrays in parameters cannot JIT compile #25
Comments
Arrays and matrices are fine. The issue here seems to be that the parameters |
ok, thanks for the info |
Hi, gives me: (if I write 'x*u' in the equation then it's not a vector product I get.) Does 'jitoptimize_ode' use some other notation for vector multiplication? |
It tries to scalarize it. I assume the issue might be the fact that R is using a BLAS for the matmul which isn't getting properly traced and replaced. If it was using an algorithm with indexing under the hood it would. |
Hi
I have extended my epidemic SIR model to two age groups, which have some contact rates among each other (captured with a mixing matrix), and some transition rates (ageing, demo matrix). Since diffeqr does not accept additional arguments, I have wrapped the two matrices in "p" with an R list. However, diffeqr seems to have a problem with the array or matrix type in R.
The following code:
throws this error:
Is there a way around this? If not it might be necessary to write the function as JuliaCall::julia_eval. Is there an example of an ODE function that uses array/matrix calculation in Julia lang (doesn't have to be an SIR, any compartmental model will do)? Thanks
The text was updated successfully, but these errors were encountered: