@@ -2,21 +2,22 @@ blockrowsupport(_, A, k) = blockaxes(A,2)
22"""
33 blockrowsupport(A, k)
44
5- Return an iterator containing the possible non-zero blocks in the k -th block-row of A .
5+ Return an iterator containing the possible non-zero blocks in the `k` -th block-row of `A` .
66
77# Examples
88```jldoctest
9- julia> B = BlockArray(collect(reshape(1:9, 3, 3)), [1,2], [1,2 ])
10- 2×2 -blocked 3×3 BlockMatrix{Int64}:
11- 1 │ 4 7
12- ───┼──────
13- 2 │ 5 8
14- 3 │ 6 9
9+ julia> B = BlockArray(collect(reshape(1:9, 3, 3)), [1,2], [1,1,1 ])
10+ 2×3 -blocked 3×3 BlockMatrix{Int64}:
11+ 1 │ 4 │ 7
12+ ───┼─────┼── ─
13+ 2 │ 5 │ 8
14+ 3 │ 6 │ 9
1515
1616julia> BlockArrays.blockrowsupport(B, 2)
17- 2 -element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
17+ 3 -element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
1818 Block(1)
1919 Block(2)
20+ Block(3)
2021```
2122"""
2223blockrowsupport (A, k) = blockrowsupport (MemoryLayout (A), A, k)
@@ -27,16 +28,16 @@ blockcolsupport(_, A, j) = Block.(colsupport(blocks(A), Int.(j)))
2728"""
2829 blockcolsupport(A, j)
2930
30- Return an iterator containing the possible non-zero blocks in the j -th block-column of A .
31+ Return an iterator containing the possible non-zero blocks in the `j` -th block-column of `A` .
3132
3233# Examples
3334```jldoctest
34- julia> B = BlockArray(collect(reshape(1:9, 3, 3)), [1,2], [1,2 ])
35- 2×2 -blocked 3×3 BlockMatrix{Int64}:
36- 1 │ 4 7
37- ───┼──────
38- 2 │ 5 8
39- 3 │ 6 9
35+ julia> B = BlockArray(collect(reshape(1:9, 3, 3)), [1,2], [1,1,1 ])
36+ 2×3 -blocked 3×3 BlockMatrix{Int64}:
37+ 1 │ 4 │ 7
38+ ───┼─────┼── ─
39+ 2 │ 5 │ 8
40+ 3 │ 6 │ 9
4041
4142julia> BlockArrays.blockcolsupport(B, 2)
42432-element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
0 commit comments