-
Notifications
You must be signed in to change notification settings - Fork 9
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
Possibly generalize the indices? #6
Comments
I have been thinking about this and it would be nice to generalise. However, I do not yet see an application for AbstractArrays other than Vector and Matrix, so the activation energy for me to look into this has not yet been high enough to cross the potential well. |
I think some of the ODE setups from this thread are good motivators: https://discourse.julialang.org/t/get-values-of-symbols-inside-a-function or those which are multi-scale models https://github.com/JuliaDiffEq/MultiScaleModels.jl Full support of large swath of |
Implement new cache mechanism in (almost) all integrators
I see lots of codes like:
Note that this will only loop though
Array
in Julia. If someone uses anOffsetArray
or many other things inAbstractArray
, this will not get the indices right, which is why it's normally nice to useeachindex(u)
whereu
is the array if you're updating each element.Do you plan on supporting non-traditional arrays? Note that this is something we'll be compiling a compatibility list of, so it's definitely okay to not go out of your way to do this. I think only OrdinaryDiffEq.jl is compatible with most of the odd types like this, while things like Sundials.jl, LSODA.jl, and ODEInterface.jl are on the other end and need
Vector{Float64}
.The text was updated successfully, but these errors were encountered: