-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
broadcastApplying a function over a collectionApplying a function over a collection
Description
Similar issue #48443
Many other functions that should be equivalent to their broadcasted version have the same problem (although some of them don't even lazy broadcast to ranges). Here is an example.
julia> Diagonal(1:5)+Diagonal(1:5) |> typeof
Diagonal{Int64, StepRangeLen{Int64, Int64, Int64, Int64}}
julia> Diagonal(1:5).+Diagonal(1:5) |> typeof
Diagonal{Int64, Vector{Int64}}
julia> (1:5) .+ (1:5) |> typeof
StepRangeLen{Int64, Int64, Int64, Int64}
Metadata
Metadata
Assignees
Labels
broadcastApplying a function over a collectionApplying a function over a collection