-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
broadcastApplying a function over a collectionApplying a function over a collection
Description
Following this Discourse discussion, I'd like to propose to make CartesianIndexs broadcast like scalars. That is, since
julia> 1 .+ (2, 3)
(3, 4)
works, so should
julia> CartesianIndex(1,1) .+ (CartesianIndex(2,2), CartesianIndex(3,3))
(which currently errors, but should, in my opinion, result in (CartesianIndex(3, 3), CartesianIndex(4, 4)))
johnnychen94, CameronBieganek, mbauman, stevengj, gustaphe and 2 more
Metadata
Metadata
Assignees
Labels
broadcastApplying a function over a collectionApplying a function over a collection