LabelledArrays.jl icon indicating copy to clipboard operation
LabelledArrays.jl copied to clipboard

use with VectorOfArray

Open rveltz opened this issue 7 years ago • 1 comments

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,:]

rveltz avatar Dec 11 '18 08:12 rveltz

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

ChrisRackauckas avatar Dec 13 '18 21:12 ChrisRackauckas