This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Iterator versions of ODE solvers #27
Open
Description
I was thinking about #11 and just relaised that an iterator version of the ODE solvers might be a viable solution. As this is a different idea than the event function, I opened a new issue.
ode = ode_45_iter(f, y0, [0,Inf])
for t, y in ode
if y[1] > 10
break
end
end
# and if we want the ODE_iter to store the intermediary solutions
# (maybe that should be left as a task for the user).
t_out, y_out = get_ode_solution_vectors(ode)
This can also be very convenient for plotting partial results and to be able to track the solvers progress.