@@ -321,20 +321,18 @@ The relationship between `Block` and `BlockRange` mimics the relationship betwee
321321
322322# Examples
323323```jldoctest
324- julia> BlockRange(2,2)
325- 2×2 BlockRange{2, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}:
326- Block(1, 1) Block(1, 2)
327- Block(2, 1) Block(2, 2)
328-
329- julia> BlockRange(2:3, 3:4)
330- 2×2 BlockRange{2, Tuple{UnitRange{Int64}, UnitRange{Int64}}}:
324+ julia> BlockRange(2:3, 3:4) |> collect
325+ 2×2 Matrix{Block{2, Int64}}:
331326 Block(2, 3) Block(2, 4)
332327 Block(3, 3) Block(3, 4)
333328
329+ julia> BlockRange(2, 2) |> collect # number of elements, starting at 1
330+ 2×2 Matrix{Block{2, Int64}}:
331+ Block(1, 1) Block(1, 2)
332+ Block(2, 1) Block(2, 2)
333+
334334julia> Block(1):Block(2)
335- 2-element BlockRange{1, Tuple{UnitRange{Int64}}}:
336- Block(1)
337- Block(2)
335+ BlockRange(1:2)
338336```
339337"""
340338BlockRange
@@ -416,8 +414,6 @@ _in(b, ::Tuple{}, ::Tuple{}, ::Tuple{}) = b
416414# We sometimes need intersection of BlockRange to return a BlockRange
417415intersect (a:: BlockRange{1} , b:: BlockRange{1} ) = BlockRange (intersect (a. indices[1 ], b. indices[1 ]))
418416
419- Base. show (io:: IO , br:: BlockRange ) = print (io, " BlockRange(" , br. indices... , " )" )
420-
421417# needed for scalar-like broadcasting
422418
423419BlockSlice {Block{1,BT},RT} (a:: Base.OneTo ) where {BT,RT<: AbstractUnitRange } =
0 commit comments