Trace of a matrix.
Compute the trace of a square matrix.
tr(X)
X
This computes the sum of the diagonal elements of a square matrix.
Cedric E. Ginestet cedric.ginestet@kcl.ac.uk