-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Thanks for the awesome package! It's been very helpful in putting together some complicated models. One of my simulations has a matrix of ODEs and I tried using ComponentArrays to handle it, but it seems to flatten it into a vector. MWE:
julia> c = ComponentArray(a = 1, b = rand(2,2))
ComponentArray{Float64}(a = 1.0, b = [0.24410936846253284, 0.7216454349529038, 0.7719341762466598, 0.5748953546713345])
julia> c[:b]
4-element view(::Array{Float64,1}, 2:5) with eltype Float64:
0.24410936846253284
0.7216454349529038
0.7719341762466598
0.5748953546713345Instead I was expecting something like this:
julia> c[:b]
4-element view(::Array{Float64,2}, 2:5, 2:5) with eltype Float64:
0.244109 0.771934
0.721645 0.574895Metadata
Metadata
Assignees
Labels
No labels