Matrix trace
Sum of the main diagonal elements.
Trace(a)
a |
a square matrix |
Sums the elements of the main diagonal of areal or complrx square matrix.
scalar value
The corresponding function in Matlab/Octave is called trace(), but this in R has a different meaning.
Trace(matrix(1:16, nrow=4, ncol=4))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.