dpnp.ndarray.diagonal

ndarray.diagonal(offset=0, axis1=0, axis2=1)

Return specified diagonals.

See also

dpnp.diagonal