Return the indices to access the main diagonal of an array.
The input array must be at least 2D, and all dimensions must be of equal
length. Returns a list of ndim index arrays of dtype int32, which can be
used to access the main diagonal of the array with Array.slice().
Return the indices to access the main diagonal of an array.
The input array must be at least 2D, and all dimensions must be of equal length. Returns a list of
ndimindex arrays of dtypeint32, which can be used to access the main diagonal of the array withArray.slice().