powered by
Find diagonal indices of k-mode array, where "diagonal" is i=j for first two indices of input array Y
adiag(Y)