Returns the trace of a matrix
tr(a)
Matrix whose trace is desired
# NOT RUN { tr(matrix(1:9,3,3)) # }
Run the code above in your browser using DataLab