TableDirections 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
->
,
, ... specifies explicitly whether each dimension should be arranged with Column or Row.