Question: Transpose a Multidimentional Array

January 28 2013 splatcat 10
Maple

0

Hi,

I am trying to do somthing like this (I actually have a 5D Array, this is a simple example) (mathematica code)

a = { {{1,2,3},{4,5,6}},{{1,2,3},{4,5,6}},{{1,2,3},{4,5,6}}};

Transpose[a, {1,3,2}]

 (* this {1,3,2} dictates what gets transposed e.g. {1,2,3}, would leave the Array the same, and the example transposes the last two dimentions*)

in maple.

After some research it seems it makes sense in maple to use an array and not a Matrix, but I am not sure how to transpose a Matrix at will.

 

Thank you so much for your help with this. 

Please Wait...