Is there any functions like get_du(::integrator)?
YiboXia94 opened this issue · 5 comments
I notice that in the latest version of dynamicalsystems.jl
ds becomes the integrator itself. It's a good improvement but I don't know how to get the derivative via get_du() now. Could we have the same function?
What does derivative mean here? I guess you have a continuous time system and you want the output of the dynamic rule.
Then you do f = dynamic_rule(ds)
to get the derivative function and depending on whether it is in place or out of place you can do current_state(ds)
appropriately to get the derivative.
but I guess a convenience function dynamic_rule_output(ds)
would work as well if you wanna contribute it!
What does derivative mean here?
derivative I mean here is the real-time derivative value, function get_du
can be found in https://docs.sciml.ai/DiffEqDocs/dev/basics/integrator/#SciMLBase.get_du.
but I guess a convenience function
dynamic_rule_output(ds)
would work as well if you wanna contribute it!
Yes, I would write one just like get_du()
in DifferentialEquations.jl
Thanks, but you don't have to write that you've opened a PR, I can see the PR immediatelly in the notifications ;)