Skip to content

Commit ddc14db

Browse files
committed
Add exercise assignment for Subdiagonal matrix
1 parent b15b04a commit ddc14db

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

numpy/subdiagonal-matrix/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Subdiagonal matrix
2+
3+
Create a 6x6 matrix with 1’s above and below the diagonal and zeros
4+
otherwise:
5+
```
6+
0 1 0 0 0 0
7+
1 0 1 0 0 0
8+
0 1 0 1 0 0
9+
0 0 1 0 1 0
10+
0 0 0 1 0 1
11+
0 0 0 0 1 0
12+
```
13+
Use the `numpy.eye()` function.

0 commit comments

Comments
 (0)