tr {lava} | R Documentation |
Trace operator
Description
Calculates the trace of a square matrix.
Usage
tr(x, ...)
Arguments
x |
Square numeric matrix |
... |
Additional arguments to lower level functions |
Value
numeric
Author(s)
Klaus K. Holst
See Also
Examples
tr(diag(1:5))
[Package lava version 1.8.0 Index]