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