tr | R Documentation |
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
tr(diag(1:5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.