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
I would have expected an Array{Array{Float64,1},1}.
The text was updated successfully, but these errors were encountered:
simonster
changed the title
Broadcast on nested Arrays gives subobtimal type information
Broadcast on nested Arrays gives suboptimal type information
May 5, 2015
Right now the return type is determined using promote_eltype or by a set of ad-hoc functions in broadcast.jl. To get this right generally, it seems like we need to either (ab)use type inference or use a trick similar to map.
map(*, [2.,3.], a) gives an Array{Array{Float64,1},1}, so this is another instance that would apparently be fixed by adapting map's algorithm to broadcast (#16164). Duplicate of #4883.
gives
I would have expected an
Array{Array{Float64,1},1}
.The text was updated successfully, but these errors were encountered: