Skip to content

Commit 4d3e366

Browse files
committed
Update README.md
1 parent 2551b75 commit 4d3e366

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ l,u = 2,1 # block bandwidths
2323
N = M = 4 # number of row/column blocks
2424
cols = rows = 1:N # block sizes
2525

26-
BlockBandedMatrix(Zeros(sum(rows),sum(cols)), (rows,cols), (l,u)) # creates a block-banded matrix of zeros
27-
BlockBandedMatrix(Ones(sum(rows),sum(cols)), (rows,cols), (l,u)) # creates a block-banded matrix with ones in the non-zero entries
28-
BlockBandedMatrix(I, (rows,cols), (l,u)) # creates a block-banded identity matrix
26+
BlockBandedMatrix(Zeros(sum(rows),sum(cols)), rows,cols, (l,u)) # creates a block-banded matrix of zeros
27+
BlockBandedMatrix(Ones(sum(rows),sum(cols)), rows,cols, (l,u)) # creates a block-banded matrix with ones in the non-zero entries
28+
BlockBandedMatrix(I, rows,cols, (l,u)) # creates a block-banded identity matrix
2929
```
3030

3131
A `BandedBlockBandedMatrix` has the added structure that the blocks themselves are
@@ -36,7 +36,7 @@ l,u = 2,1 # block bandwidths
3636
λ,μ = 1,2 # sub-block bandwidths: the bandwidths of each block
3737
N = M = 4 # number of row/column blocks
3838
cols = rows = 1:N # block sizes
39-
BandedBlockBandedMatrix(Zeros(sum(rows),sum(cols)), (rows,cols), (l,u), (λ,μ)) # creates a banded-block-banded matrix of zeros
40-
BandedBlockBandedMatrix(Ones(sum(rows),sum(cols)), (rows,cols), (l,u), (λ,μ)) # creates a banded-block-banded matrix with ones in the non-zero entries
41-
BandedBlockBandedMatrix(I, (rows,cols), (l,u), (λ,μ))) # creates a banded-block-banded identity matrix
39+
BandedBlockBandedMatrix(Zeros(sum(rows),sum(cols)), rows,cols, (l,u), (λ,μ)) # creates a banded-block-banded matrix of zeros
40+
BandedBlockBandedMatrix(Ones(sum(rows),sum(cols)), rows,cols, (l,u), (λ,μ)) # creates a banded-block-banded matrix with ones in the non-zero entries
41+
BandedBlockBandedMatrix(I, rows,cols, (l,u), (λ,μ))) # creates a banded-block-banded identity matrix
4242
```

0 commit comments

Comments
 (0)