def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):
 return a.trace(offset, axis1, axis2, dtype, out)

def trace ( a , offset = 0 , axis1 = 0 , axis2 = 1 , dtype = None , out = None ) : return a . trace ( offset , axis1 , axis2 , dtype , out )
returns the trace of a matrix .