tr {jjb} | R Documentation |
Obtain the Trace of a Square Matrix
Description
Calculates and returns the trace of a square matrix.
Usage
tr(x)
Arguments
x |
A |
Value
A matrix
with circles imprinted within its dimensions.
Author(s)
James Balamuta
Examples
# I_2 matrix
tr(diag(2))
[Package jjb version 0.1.1 Index]