Trace of A Matrix
This function calculates the trace of a given numeric square matrix. This function should not be called directly in this package. It is called by other functions like dscore and sscore.
tr(X)
X |
A square matrix |
A numeric value which is the sum of the values on the diagnonal.
A=matrix(seq(1:9),nrow=3,ncol=3) tr(A)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.