({{, (RefLink[TableDirections, paclet:ref/TableDirections])
is an option for (RefLink[TableForm, paclet:ref/TableForm]) and (RefLink[MatrixForm, paclet:ref/MatrixForm]) which specifies whether successive dimensions should be arranged as rows or columns. }})

OpenersNotesSection(Spacer1)Details

(RefLink[TableDirections, paclet:ref/TableDirections])->(RefLink[Column, paclet:ref/Column]) specifies that successive dimensions should be arranged alternately as columns and rows, with the first dimension arranged as columns.

(RefLink[TableDirections, paclet:ref/TableDirections])->(RefLink[Row, paclet:ref/Row]) takes the first dimension to be arranged as rows.

(RefLink[TableDirections, paclet:ref/TableDirections])->{(Subscript[dir, 1]),(Subscript[dir, 2]),…} specifies explicitly whether each dimension should be arranged with (RefLink[Column, paclet:ref/Column]) or (RefLink[Row, paclet:ref/Row]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

By default the outermost dimension is a column:

TableForm[{{a,b},{c,d},{e,f}}]

Format the first dimension as a row instead:

TableForm[{{a,b},{c,d},{e,f}},TableDirections->Row]

OpenersExampleSection1(Spacer1)Scope  (3)

Use with (RefLink[MatrixForm, paclet:ref/MatrixForm]):

MatrixForm[{{a,b},{c,d},{e,f}}]

MatrixForm[{{a,b},{c,d},{e,f}},TableDirections->Row]

Format only as rows:

MatrixForm[{{a,b},{c,d},{e,f}},TableDirections->{Row,Row}]

Only as columns:

MatrixForm[{{a,b},{c,d},{e,f}},TableDirections->{Column,Column}]

A default higher-dimensional tensor:

MatrixForm[Array[(Subscript[a, ##])&,{4,3,2}]]

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

MatrixForm[Array[(Subscript[a, ##])&,{4,3,2}],TableDirections->{Column,Column,Row}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TableSpacing, paclet:ref/TableSpacing])  ▪  (RefLink[TableAlignments, paclet:ref/TableAlignments])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Tables and Matrices, paclet:tutorial/TablesAndMatrices])}})}})