powered by
This function computes the trace of a matrix.
tr(M)
The trace of the matrix M.
square matrix
Nicole Kraemer
M<-matrix(rnorm(8*8),ncol=8) tr.M<-tr(M)
Run the code above in your browser using DataLab