Skip to content

Commit

Permalink
Merge a60574b into 16ad3a4
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz authored Aug 4, 2016
2 parents 16ad3a4 + a60574b commit ca6f4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/arraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function _elementwise(op, ::Type{Any}, A::AbstractArray, B::AbstractArray)
promote_shape(A, B) # check size compatibility
return broadcast(op, A, B)
end
function _elementwise(op, T::Type, A::AbstractArray, B::AbstractArray)
function _elementwise{T}(op, ::Type{T}, A::AbstractArray, B::AbstractArray)
F = similar(A, T, promote_shape(A, B))
for (iF, iA, iB) in zip(eachindex(F), eachindex(A), eachindex(B))
@inbounds F[iF] = op(A[iA], B[iB])
Expand Down

0 comments on commit ca6f4a9

Please sign in to comment.