Wolfram: Transpose
Transpose
Transpose-
Transpose[list]Transpose[list, m <-> n]Transpose[list,{n1, n2, etc}]
- Transpose a matrix.
- Transposes levels m and n. (default
1and2) - when given a list {n1, n2, etc}, transposes so that the k(th) level in list is the n(th) level in the result. (the list is a permutation of 1 to k, where k is
ArrayDepth)
Transpose[ {{a, b, c}, {1, 2, 3}} ] (* {{a, 1}, {b, 2}, {c, 3}} *) (* same as *) Transpose[ {{a, b, c}, {1, 2, 3}}, {2, 1} ] (* {{a, 1}, {b, 2}, {c, 3}} *) (* same as *) Transpose[ {{a, b, c}, {1, 2, 3}}, 1 <-> 2 ] (* {{a, 1}, {b, 2}, {c, 3}} *)