Description Usage Arguments Value Author(s) References See Also Examples
Sum of the diagonal of a square matrix.
1 | tr(X)
|
X |
Numeric matrix. A p \times p matrix. |
Returns the sum of the diagonal of a square matrix.
Ivan Jacob Agaloos Pesigan
Wikipedia: Trace (Linear Algebra)
Other matrix functions:
cor2cov()
,
low2sym()
,
up2sym()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.