Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Tr

Usage

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.


Notes

Tr[list] sums the diagonal elements list[[i, i, ... ]].
Tr works for rectangular as well as square matrices and tensors.
Tr can be used on SparseArray objects.
• See Section 3.7.7.
• New in Version 4.
• Advanced Documentation.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: