Return a 2-D array with ones on the diagonal and zeros elsewhere.
Number of rows in the output.
Optional
Number of columns in the output.
Index of the diagonal.
An array where all elements are equal to zero, except for the k-th diagonal, whose values are equal to one.
k
Return a 2-D array with ones on the diagonal and zeros elsewhere.