You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A FieldArray displays as an array, values only. It would be great if it showed the field names too---named fields are presumably the reason to use a FieldArray in the first place.
julia>using StaticArrays
julia> Base.@kwdefstruct Foo <:FieldVector{2,Float64}
bar::Float64
baz::Float64end
Foo
julia>Foo(bar=3.0, baz=5.0)
2-element Foo with indices SOneTo(2):3.05.0
Compare LabelledArrays.jl:
julia>using LabelledArrays
julia>SLVector(bar=3.0, baz=5.0)
2-element SLArray{Tuple{2}, Float64, 1, 2, (:bar, :baz)} with indices SOneTo(2)::bar=>3.0:baz=>5.0
The text was updated successfully, but these errors were encountered:
A
FieldArray
displays as an array, values only. It would be great if it showed the field names too---named fields are presumably the reason to use aFieldArray
in the first place.Compare LabelledArrays.jl:
The text was updated successfully, but these errors were encountered: