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


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

- 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.
Examples
open all close allBasic Examples (1)
Scope (3)
Use with MatrixForm:
A default higher-dimensional tensor:
Format the first two dimensions as columns and the third as rows:
See Also
Tech Notes
Related Workflows
- Make a Grid of Output Data
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), TableDirections, Wolfram Language function, https://reference.wolfram.com/language/ref/TableDirections.html.
CMS
Wolfram Language. 1991. "TableDirections." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TableDirections.html.
APA
Wolfram Language. (1991). TableDirections. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TableDirections.html
BibTeX
@misc{reference.wolfram_2025_tabledirections, author="Wolfram Research", title="{TableDirections}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TableDirections.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_tabledirections, organization={Wolfram Research}, title={TableDirections}, year={1991}, url={https://reference.wolfram.com/language/ref/TableDirections.html}, note=[Accessed: 15-August-2025]}