LabelledArrays.jl
LabelledArrays.jl copied to clipboard
use with VectorOfArray
Hi,
I am trying to use LabelledArrays a bit like in Diffeq. Is it easy to make the following work or some related syntax?
Thank you for your work,
Cheers
using LabelledArrays, RecursiveArrayTools
v = @LArray [1.0,0.0,0.0] (:x,:y,:z)
sol=VectorOfArray([v])
push!(sol,v)
sol[:x,:]
I think RecursiveArrayTools needs to allow its indexing here to allow symbols: https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/blob/master/src/vector_of_array.jl#L29-L36