comment on possible future deprecations
This commit is contained in:
parent
534809ae78
commit
29215fa5d7
|
@ -94,6 +94,9 @@ for op in (:+, :-, :*)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Some opportunities to avoid scalar indexing, intermediaries
|
# Some opportunities to avoid scalar indexing, intermediaries
|
||||||
|
# Since it replicates a little of what we expect Base to do,
|
||||||
|
# it should be possible to remove in the future, but for now,
|
||||||
|
# these help with performance.
|
||||||
broadcasted(::typeof(+), a::AbstractArray, b::Zeros{T,0}) where T = a
|
broadcasted(::typeof(+), a::AbstractArray, b::Zeros{T,0}) where T = a
|
||||||
broadcasted(::typeof(+), a::Zeros{T,0}, b::AbstractArray) where T = b
|
broadcasted(::typeof(+), a::Zeros{T,0}, b::AbstractArray) where T = b
|
||||||
broadcasted(::typeof(-), a::AbstractArray, b::Zeros{T,0}) where T = a
|
broadcasted(::typeof(-), a::AbstractArray, b::Zeros{T,0}) where T = a
|
||||||
|
|
Loading…
Reference in New Issue