Transpose

Transpose[list]

transposes the first two levels in list.

Transpose[list,{n1,n2,}]

transposes list so that the k^(th) level in list is the nk^(th) level in the result.

Transpose[list,mn]

transposes levels m and n in list, leaving all other levels unchanged.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Transpose a 2×3 matrix:

In[1]:=
Click for copyable input
Out[1]=

Use followed by tr to enter the transposition operator:

In[1]:=
Click for copyable input
Out[1]=

Scope  (9)

Applications  (2)

Properties & Relations  (11)

Possible Issues  (1)

Neat Examples  (1)

See Also

Flatten  Thread  ConjugateTranspose  TensorTranspose  Tr  TwoWayRule  Cycles  Reverse

Tutorials

Introduced in 1988
(1.0)
| Updated in 2017
(11.2)