| tr | R Documentation |
Computes the trace of a matrix A.
tr(A)
A |
a square matrix. |
If A has order n,
then tr(A) = \sum_{i=1}^{n}a_{ii}.
J(), trdot(), cartesian()
A <- rbind(1:5, 2:6, 3:7)
# Calculate the trace of A
tr(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.