Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Get type containing the types of a set?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles