Trace of a Matrix
Returns trace of a matrix.
tr(x)
x |
a numeric matrix. |
The function tr
computes the trace of a square matrix which
is the sum of the diagonal elements of the matrix under consideration.
Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.
## Create Pascal Matrix: P = pascal(3) P ## Trace: tr(P)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.