Calculates the trace of a matrix
Value
returns the sum of the diagonal elements of the matrix
Details
For square, symmetric matrices, such as covariance matrices, the trace is sometimes
used as a measure of size, e.g., in Pillai's trace criterion for a MLM.