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.

Details and Options

  • Transpose gives the usual transpose of a matrix.
  • Transpose[m] can be input as m.
  • can be entered as tr or \[Transpose].
  • Acting on a tensor Ti1i2i3 Transpose gives the tensor Ti2i1i3. »
  • Transpose[list,{n1,n2,}] gives the tensor Tin1in2.
  • So long as the lengths of the lists at particular levels are the same, the specifications nk do not necessarily have to be distinct.
  • Transpose works on SparseArray objects.

Examples

open allclose all

Basic Examples  (1)

Transpose a 2×3 matrix:

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

Scope  (3)

Generalizations & Extensions  (2)

Applications  (1)

Properties & Relations  (2)

Possible Issues  (1)

Neat Examples  (1)

See Also

Flatten  Thread  ConjugateTranspose  Tr  Reverse

Tutorials

Introduced in 1988
(1.0)
| Updated in 2004
(5.1)