Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Lists and Matrices / Structure Manipulation /

Tr

FilledSmallSquare Tr[list] finds the trace of the matrix or tensor list.

FilledSmallSquare Tr[list, f] finds a generalized trace, combining terms with f instead of Plus.

FilledSmallSquare Tr[list, f, n] goes down to level n in list.

FilledSmallSquare Tr[list] sums the diagonal elements list[[i, i, ... ]].

FilledSmallSquare Tr works for rectangular as well as square matrices and tensors.

FilledSmallSquare Tr can be used on SparseArray objects.

FilledSmallSquare See Section 3.7.7.

FilledSmallSquare See also: Total, Transpose, Det, DiagonalMatrix, Eigenvalues.

FilledSmallSquare New in Version 4.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.