You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@inlinetuple_type_broadcastlayout(::Type{I}) where {I<:Tuple} =result_style(BroadcastStyle(Base.tuple_type_head(I)), tuple_type_broadcastlayout(Base.tuple_type_tail(I)))
@inlinetuple_type_broadcastlayout(::Type{Tuple{A}}) where {A} =BroadcastStyle(A)
445
+
@inlinetuple_type_broadcastlayout(::Type{Tuple{A,B}}) where {A,B} =result_style(BroadcastStyle(A), BroadcastStyle(B))
446
+
@inlinetuple_type_broadcastlayout(::Type{Tuple{A,B,C}}) where {A,B,C} =result_style(BroadcastStyle(A), tuple_type_broadcastlayout(Tuple{B,C}))
447
+
@inlinetuple_type_broadcastlayout(::Type{Tuple{A,B,C,D}}) where {A,B,C,D} =result_style(BroadcastStyle(A), tuple_type_broadcastlayout(Tuple{B,C,D}))
448
+
@inlinetuple_type_broadcastlayout(::Type{Tuple{A,B,C,D,E}}) where {A,B,C,D,E} =result_style(BroadcastStyle(A), tuple_type_broadcastlayout(Tuple{B,C,D,E}))
449
+
450
+
BroadcastStyle(::Type{<:Vcat{<:Any,N,I}}) where {N,I<:Tuple} =result_style(LazyArrayStyle{N}(), tuple_type_broadcastlayout(I)) # the <:Tuple is to avoid ambiguity
451
+
BroadcastStyle(::Type{<:Hcat{<:Any,I}}) where {I<:Tuple} =result_style(LazyArrayStyle{2}(), tuple_type_broadcastlayout(I))
444
452
445
453
# This is if we broadcast a function on a mixed concat f.([1; [2,3]])
446
454
# such that f returns a vector, e.g., f(1) == [1,2], we don't want
0 commit comments