Skip to content

Commit

Permalink
Addressed points by andyferris
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 8, 2017
1 parent b146f8a commit 5d5bab6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ else
BroadcastStyle(::Type{<:StaticArray{D, T, N}}) where {D, T, N} = StaticArrayStyle{N}()

# 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()
BroadcastStyle(::StaticArrayStyle{M}, ::Broadcast.VectorStyle) where M = Broadcast.Unknown()
BroadcastStyle(::StaticArrayStyle{M}, ::Broadcast.MatrixStyle) where M = Broadcast.Unknown()

# Add a broadcast method that calls the old @generated routine
# Add a broadcast method that calls the @generated routine
@inline function broadcast(f, ::StaticArrayStyle, ::Void, ::Void, As...)
_broadcast(f, broadcast_sizes(As...), As...)
end
Expand Down

0 comments on commit 5d5bab6

Please sign in to comment.