is an option for TableForm and MatrixForm which specifies whether successive dimensions should be arranged as rows or columns.


  • TableDirections->Column specifies that successive dimensions should be arranged alternately as columns and rows, with the first dimension arranged as columns.
  • TableDirections->Row takes the first dimension to be arranged as rows.
  • TableDirections->{dir1,dir2,} specifies explicitly whether each dimension should be arranged with Column or Row.


open allclose all

Basic Examples  (1)

By default the outermost dimension is a column:

Format the first dimension as a row instead:

Scope  (3)

Use with MatrixForm:

Format only as rows:

Only as columns:

A default higher-dimensional tensor:

Format the first two dimensions as columns and the third as rows:

Introduced in 1991