powered by
Return the mathematical trace of a matrix, the sum of its diagonal elements.
tr(M)
The trace of the matrix.
The matrix from which to calculate the trace.