powered by
Compute the trace of the square matrix.
tr(X)
a square matrix.
A numeric value.
John J, Williams E (1987). Cyclic and computer generated Designs. Second edition. Chapman & Hall.
diag
# NOT RUN { m = matrix(1, nrow = 10, ncol = 10) tr(m) # }
Run the code above in your browser using DataLab