Return specified diagonals.
Refer to numpy.diagonal for full documentation.
See also
numpy.ma.MaskedArray.compress
numpy.ma.MaskedArray.fill