This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

TableDepth

TableDepth
is an option for TableForm and MatrixForm which specifies the maximum number of levels to be printed in tabular or matrix format.
  • TableForm prints elements in list below level n as ordinary lists, rather than arranging them in tabular form.
  • With the default setting TableDepth->Infinity, as many levels as possible are printed in tabular form. In TableForm, the levels printed need not consist of elements with the same list structure. In MatrixForm, they must.
Format a tensor of rank 3 as a table of lists:
Format a tensor of rank 3 as a table of lists:
In[1]:=
Click for copyable input
Out[1]//TableForm=
Use with MatrixForm:
Format rows of a matrix as lists:
Format the same matrix as a row vector of the rows:
New in 2