-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
MethodError: no method matching -(::Array{Float64,1}, ::Float64) #11
Comments
This ended up being an issue in the integrator itself when done out-of-place + arrays (a rare combination to do except from R). This is fixed with the release of StochasticDiffEq.jl v5.10.1. You'll need to run |
Just updated StochasticDiffEq and it works great now. Excited to apply this to my own model now. Thanks very much for your time! |
Hi I obtain the same/ similar error, while trying the 1-D ODE example in the vignette of diffeqr.
The error message I get is: My session info is :
|
I assume you wanted: f <- JuliaCall::julia_eval("
function f(du,u,p,t)
du .= 1.01.*u
end") ? |
No.. I had tried that as well ... but did not work and gave the same error. |
Try |
I have the same problem as dlekshmi, yesterday we managed to make it work, but it requires turning the problem from 1D to 2D system of equations, and it doesn't work if the function is defined via R, like in the example. I put together an R markdown notebook, with my session info/code. |
I think the issue might be that |
function updateSIR(popnvector) # some liberty here: using upper case in the function name initialisensteps = round(Int64, tfinal/dt) # note the use of round() with type Int64 to ensure that nsteps is an integer for step = 1:nsteps I am new to julia i can not understand where the error comes can anyone please help me to solve Stacktrace: |
The error message says it's using Julia v1.0 but diffeqr asks for v1.3+. Also, this looks like it's not using diffeqr and the error message isn't related? So I don't think that issue is related to this at all. Please ask general usage questions on https://discourse.julialang.org/ . |
Hi there,
I'm really happy this package exists! Thanks for making it available. However, I am having a problem getting SDEs to work (so far ODEs work perfectly).
When I run the following example from the readme I get an error from Julia:
The result is:
I am using Julia 1.0.2.
My session info:
Any help with this would be much appreciated! Thanks.
The text was updated successfully, but these errors were encountered: