# Using LabelledArrays with ArrayPartition

**URL:** <https://discourse.julialang.org/t/using-labelledarrays-with-arraypartition/26707>\
**Category:** General Usage\
**Tags:** numerics\
**Created:** [July 23, 2019, 10:12pm UTC](https://discourse.julialang.org/t/using-labelledarrays-with-arraypartition/26707 "2019-07-23T22:12:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzilhao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzilhao/32/9473_2.png) [@mzilhao](https://discourse.julialang.org/u/mzilhao)\
**Post date:** [July 23, 2019, 10:12pm UTC](https://discourse.julialang.org/t/using-labelledarrays-with-arraypartition/26707/1 "2019-07-23T22:12:41Z")

</div>

I was wondering if there is any way of using the functionality of [LabelledArrays.jl](https://github.com/JuliaDiffEq/LabelledArrays.jl) with [ArrayPartition](https://github.com/JuliaDiffEq/RecursiveArrayTools.jl).  
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?

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [July 24, 2019, 2:35am UTC](https://discourse.julialang.org/t/using-labelledarrays-with-arraypartition/26707/2 "2019-07-24T02:35:24Z")

</div>

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