{ } Raw JSON

bundles / astropy latest / astropy / utils / shapes / NDArrayShapeMethods / diagonal

function

astropy.utils.shapes:NDArrayShapeMethods.diagonal

source: /astropy/utils/shapes.py:139

Signature

def diagonal(self, *args, **kwargs)

Summary

Return an instance with the specified diagonals.

Extended Summary

Parameters are as for diagonal. All internal data are views of the data of the original.

Aliases

  • astropy.utils.NDArrayShapeMethods.diagonal