Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 216 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 216 Bytes

Subdiagonal matrix

Create a 6x6 matrix with 1’s above and below the diagonal and zeros otherwise:

0 1 0 0 0 0
1 0 1 0 0 0
0 1 0 1 0 0
0 0 1 0 1 0
0 0 0 1 0 1
0 0 0 0 1 0

Use the numpy.eye() function.