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
{{ message }}
Repository navigation
dims keyword constructor gives unintuitive result when types do not match #200
julia>using StructArrays
julia> v = [13; 2-1]
2×2 Matrix{Int64}:132-1
julia>StructArray{ComplexF64}(v, dims=1)
0-element StructArray(StructArray(), StructArray()) with eltype ComplexF64 with indices 1:0
It is probably best to error if types do not match.
Activity
timholy commentedon May 11, 2022
Here's another concerning case:
I would have expected an error rather than just silently dropping the extra rows of
a.piever commentedon May 12, 2022
CC: @simonbyrne, who I think wrote the implementation of the
dimsmethod.