TableDirections

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 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:

Wolfram Research (1991), TableDirections, Wolfram Language function, https://reference.wolfram.com/language/ref/TableDirections.html.

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_2024_tabledirections, author="Wolfram Research", title="{TableDirections}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TableDirections.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_tabledirections, organization={Wolfram Research}, title={TableDirections}, year={1991}, url={https://reference.wolfram.com/language/ref/TableDirections.html}, note=[Accessed: 21-November-2024 ]}