Calculates the trace of a square matrix.
tr(x, ...)
x
Square numeric matrix
...
Additional arguments to lower level functions
numeric
Klaus K. Holst
crossprod, tcrossprod
crossprod
tcrossprod
tr(diag(1:5))