numpy.ma.trace#

ma.trace(self, offset=0, axis1=0, axis2=1, dtype=None, out=None) a.trace(offset=0, axis1=0, axis2=1, dtype=None, out=None)[原始碼]#
ma.trace(offset=0, axis1=0, axis2=1, dtype=None, out=None) None

傳回數組對角線上的所有元素總和。

Refer to numpy.trace for full documentation.

也參考

numpy.trace

equivalent function