powered by
Computes the trace of a given matrix.
tr(M)
A matrix whose trace is to be computed.
A scalar value, describing the trace of M.
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
# NOT RUN { tr(matrix(2,2,2)) # }
Run the code above in your browser using DataLab