Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Transpose[X, (3,1,2}]' topicStudent Support Forum > General > Archives > "Transpose[X, (3,1,2}]"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Forum Moderator
email me
10/28/01 9:19pm

The Help Browser article on Transposes gives a list similar to yours:

In[54]:= mm=Table[100i+10j+k,{i,2},{j,3}, {k,4}]

and goes on to state:

Under Transpose[mm,{3, 1, 2}] the entry at {i, j, k} goes to {j, k, i}.

With your example:

In[36]:= X=Array[x,{2,3,4}]

And your Transpose of X:

In[47]:= XT=Transpose[X,{3,1,2}]

It seems that Transpose is working as advertised in the documentation:

In[51]:= Table[X[[i,j,k]]==XT[[j,k,i]], {i, 1, 2},{j, 1, 3}, {k, 1, 4}]
Out[51]=
{{{True,True,True,True},{True,True,True,True},{True,True,True,True}},{{True,
True,True,True},{True,True,True,True},{True,True,True,True}}}

If you have a case for Transpose behaving differently or if I have misunderstood
your post, please post again.

Forum Moderator

URL: ,

Subject (listing for 'Transpose[X, (3,1,2}]')
Author Date Posted
Transpose[X, (3,1,2}] Brian McFann 10/20/01 5:53pm
Re: Transpose[X, (3,1,2}] Forum Modera... 10/28/01 9:19pm
< Previous CommentHelp | Reply To Comment | Reply To Topic