Skip to content

Latest commit

 

History

History

subdiagonal-matrix

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.