Skip to content

Commit 787a42f

Browse files
authored
fix typo in readme (#392)
its a 6x6 matrix (with a length 5 subdiagonal)
1 parent 962457f commit 787a42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BandedMatrix(Zeros(m,n), (l,u)) # creates a banded matrix of zeros, with l su
1919
brand(m,n,l,u) # creates a random banded matrix, with l sub-diagonals and u super-diagonals
2020
BandedMatrix(Ones(m,n), (l,u)) # creates a banded matrix of ones, with l sub-diagonals and u super-diagonals
2121
BandedMatrix(Eye(n), (l,u)) # creates a banded n x n identity matrix, with l sub-diagonals and u super-diagonals
22-
BandedMatrix(-1=> 1:5, 2=>1:3) # creates a 5 x 5 banded matrix version of diagm(-1=> 1:5, 2=>1:3)
22+
BandedMatrix(-1=> 1:5, 2=>1:3) # creates a 6 x 6 banded matrix version of diagm(-1=> 1:5, 2=>1:3)
2323
BandedMatrix((-1=> 1:5, 2=>1:3), (n,m)) # creates an n x m banded matrix with 1 sub-diagonals and u super-diagonals with the specified diagonals
2424
BandedMatrix((-1=> 1:5, 2=>1:3), (n,m), (l,u)) # creates an n x m banded matrix with l sub-diagonals and u super-diagonals with the specified diagonals
2525
```

0 commit comments

Comments
 (0)