Transpose
Transpose(m)transposes rows and columns in the matrix
m.
Transpose(tensor, permutation-list)transposes rows and columns in the
tensoraccording topermutation-list. Iftensoris aSparseArraythe result will also be aSparseArray.
See:
Examples
>> Transpose({{1, 2, 3}, {4, 5, 6}}){{1, 4}, {2, 5}, {3, 6}}
>> MatrixForm(%)1 42 53 6
>> Transpose(x)Transpose(x)
>> Transpose({{1, 2, 3}, {4, 5, 6}}, {2,1}){{1,4},{2,5},{3,6}}
>> Transpose({{1, 2, 3}, {4, 5, 6}}, {1,2}){{1,2,3},{4,5,6}}Implementation status
- ✅ - full supported