Return a 2-D array with ones on the diagonal and zeros elsewhere.
返回一个 对角线是1,其余是0的 2维数组。
参数
N (行)
M (列)
K (Index of the diagonal: 0 (the default) refers to the main diagonal, a positive value refers to an upper diagonal, and a negative value to a lower diagonal)
dtype 数据类型
order (Whether the output should be stored in row-major (C-style) or column-major (Fortran-style) order in memory)
近期评论