Section Navigation
ufunc
numpy.typing
numpy.distutils
method
Return the sum along diagonals of the array.
Refer tonumpy.trace for full documentation.
numpy.trace
See also
equivalent function
ma.MaskedArray.trace