Skip to content

Commit

Permalink
Less binary BroadcastStyle methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 7, 2017
1 parent 75dc71e commit 2edd21e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ else

BroadcastStyle(::Type{<:StaticArray{D, T, N}}) where {D, T, N} = StaticArrayStyle{N}()

# Precedence: Make StaticArray - Array -> Array
BroadcastStyle(A::AbstractArrayStyle{N}, ::StaticArrayStyle{M}) where {N,M} = A
BroadcastStyle(::StaticArrayStyle{M}, ::AbstractArrayStyle{N}) where {N,M} = Broadcast.Unknown()
# Fix Precedence: Make StaticArray - Array -> Array
BroadcastStyle(::StaticArrayStyle{M}, ::Broadcast.VectorStyle) where {N,M} = Broadcast.Unknown()
BroadcastStyle(::StaticArrayStyle{M}, ::Broadcast.MatrixStyle) where {N,M} = Broadcast.Unknown()

Expand Down

0 comments on commit 2edd21e

Please sign in to comment.