Description Usage Arguments Value Author(s) Examples
Calculates the trace of a square matrix, i.e. the sum of the diagonal elements.
1 | tr(X)
|
X |
Matrix to calculate the trace of. |
Returns the trace of X
as a scalar value.
Theo Pepler
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.