copapy.eye#

copapy.eye(rows, cols=None)#

Create a matrix with ones on the diagonal and zeros elsewhere.

Return type:

matrix[int]