I would like to define a function that takes a DynamicalSystem ds
as an argument and computes the Jacobian of dynamic_rule(ds)
for further analysis. For this, it would be good to know whether dynamic_rule(ds)
returns an inplace function or out-of-place. Is there such a functionality? Would it be safe to use m = first(methods(dynamic_rule(ds)))
and then ask m.nargs==4
for and inplace function?
Check Base.hasmethod
?
There is a function for that, ‘isinplace’ that operates on the dynamical system directly.
CU!
George