Mathematica > Core Language > List Manipulation > Rearranging & Restructuring Lists >
Mathematica > Data Manipulation > Handling Arrays of Data > Rearranging & Restructuring Lists >

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 gives the usual transpose of a matrix.
  • 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.
New in 1 | Last modified in 5.1
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team