tr | R Documentation |
Takes the traces of a matrix by extracting the diagonal entries and then summing over.
tr(x)
x |
Square matrix ( |
Returns a single-value double.
logdet
, fillout
# Identity Matrix of size 4, gives trace of 4.
tr(diag(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.