@@ -29,16 +29,14 @@ BroadcastStyle(::PseudoBlockStyle{M}, ::BlockStyle{N}) where {M,N} = BlockStyle(
2929
3030
3131# sortedunion can assume inputs are already sorted so this could be improved
32- include (" tuple_tools.jl" )
3332sortedunion (a,b) = sort! (union (a,b))
34- sortedunion (a:: Tuple , b:: Tuple ) = tuple_sort (tuple_union (a,b))
3533sortedunion (a:: Base.OneTo , b:: Base.OneTo ) = Base. OneTo (max (last (a),last (b)))
3634sortedunion (a:: AbstractUnitRange , b:: AbstractUnitRange ) = min (first (a),first (b)): max (last (a),last (b))
3735combine_blockaxes (a, b) = _BlockedUnitRange (sortedunion (blocklasts (a), blocklasts (b)))
3836
39- Base. Broadcast. axistype (a:: BlockedUnitRange , b:: BlockedUnitRange ) = length (b) == 1 ? a : combine_blockaxes (a, b)
40- Base. Broadcast. axistype (a:: BlockedUnitRange , b) = length (b) == 1 ? a : combine_blockaxes (a, b)
41- Base. Broadcast. axistype (a, b:: BlockedUnitRange ) = length (b) == 1 ? a : combine_blockaxes (a, b)
37+ Base. Broadcast. axistype (a:: BlockedUnitRange , b:: BlockedUnitRange ) = combine_blockaxes (a, b)
38+ Base. Broadcast. axistype (a:: BlockedUnitRange , b) = combine_blockaxes (a, b)
39+ Base. Broadcast. axistype (a, b:: BlockedUnitRange ) = combine_blockaxes (a, b)
4240
4341
4442similar (bc:: Broadcasted{<:AbstractBlockStyle{N}} , :: Type{T} ) where {T,N} =
0 commit comments