powered by
Trace of a matrix
tr(x)
A square numeric matrix
# NOT RUN { A <- randn(2, 2) tr(A) B <- randn(3, 3) tr(B) # }
Run the code above in your browser using DataLab