R/tr.R
tr.Rd
Calculates the trace of a square matrix.
tr(x, ...)
Square numeric matrix
Additional arguments to lower level functions
numeric
crossprod, tcrossprod
crossprod
tcrossprod
Klaus K. Holst
tr(diag(1:5)) #> [1] 15