Is there a way to get a UnionAll base type from a concrete type?

SparseDiffTools.jl (part of the SciML ecosystem) uses this construction, but it’s also based on .wrapper.

4 Likes