trace
trace(X)
:X real or complex square matrix, polynomial or rational matrix. :
trace(X) is the trace of the matrix X.
Same as sum(diag(X)).
A=`rand`_(3,3); trace(A)-`sum`_(`spec`_(A))
Enter search terms or a module, class or function name.