@@ -2,21 +2,22 @@ blockrowsupport(_, A, k) = blockaxes(A,2)
2
2
"""
3
3
blockrowsupport(A, k)
4
4
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` .
6
6
7
7
# Examples
8
8
```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
15
15
16
16
julia> BlockArrays.blockrowsupport(B, 2)
17
- 2 -element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
17
+ 3 -element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
18
18
Block(1)
19
19
Block(2)
20
+ Block(3)
20
21
```
21
22
"""
22
23
blockrowsupport (A, k) = blockrowsupport (MemoryLayout (A), A, k)
@@ -27,16 +28,16 @@ blockcolsupport(_, A, j) = Block.(colsupport(blocks(A), Int.(j)))
27
28
"""
28
29
blockcolsupport(A, j)
29
30
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` .
31
32
32
33
# Examples
33
34
```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
40
41
41
42
julia> BlockArrays.blockcolsupport(B, 2)
42
43
2-element BlockRange{1, Tuple{Base.OneTo{Int64}}}:
0 commit comments