Given a set of variables [a,b,c...]
, I want to find the type T
such that typeof(a)<:T, typeof(b)<:T, ...
.
The reason I want to do this is that I have cache variables in my ODE system, which need to be able to adapt if one of the parameters or initial conditions is of type Particles
or Dual
. I know there is a dualcache
thing in DiffEqBase.jl, but I would like a similar type of thing for arbitrary types.
Thanks!
2 posts - 2 participants