numpy.diag_indices_from

numpy.diag_indices_from(arr)[源代码]

返回索引以访问N维数组的主对角线。

diag_indices 详细信息。

参数
arr数组,至少二维

参见

diag_indices

笔记

1.4.0 新版功能.