matrix.trace | R Documentation |
Exactly what it says on the tin - compute the sum of the matrix diagonal
matrix.trace(x)
x |
A |
It computes the matrix trace of a square matrix.
numeric
scalar of the matrix trace.
Mike Morgan
matrix.trace(matrix(runif(9), ncol=3, nrow=3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.