recarray.
trace
Return the sum along diagonals of the array.
Refer tonumpy.trace for full documentation.
numpy.trace
See also
numpy.recarray.tostring
numpy.recarray.transpose