Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Matrix Operations >

Tr

Tr[list]
finds the trace of the matrix or tensor list.
Tr[list, f]
finds a generalized trace, combining terms with f instead of Plus.
Tr[list, f, n]
goes down to level n in list.
  • Tr[list] sums the diagonal elements list[[i, i, ...]].
  • Tr works for rectangular as well as square matrices and tensors.
New in 4
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team