Using LabelledArrays with ArrayPartition

I was wondering if there is any way of using the functionality of LabelledArrays.jl with ArrayPartition.
I’m finding ArrayPartition very convenient to group together and pass around arrays storing different variables (when solving systems of ODEs or PDEs, for instance), but for bookkeeping purposes it would sometimes be nice to be able to access the different arrays with something like A.u, A.v, A.w, etc. (as done with LVectors) instead of A.x[1], A.x[2], A.x[3].

Is such a thing a possible?

1 Like

Maybe not what you want but StructArrays.jl offers functionality like this https://github.com/piever/StructArrays.jl

1 Like