MV2

diagonal(a, offset=0, axis1=0, axis2=1)[source]

Diagonal

Parameters
diagonal(a, offset=0, axis1=0, axis2 = 1)
Returns
The given diagonals defined by the two dimensions of the array.