Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problems with high-dimensional lists

  • Subject: [mg2494] Problems with high-dimensional lists
  • From: Sascha at, Unzicker at
  • Date: Wed, 15 Nov 1995 06:57:59 GMT
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Universitaet Muenchen (Germany)
  • Sender: daemon at ( )

Let me give an example:



gives you 
Out[86]= {3, 4, 5, 6},
of course.

But if you try to assign a new value to a sublist
Mathematica forgets that a still should have the Dimension {3,4,5,6}:

In[88]:= Dimensions[a]
Out[88]= {3, 4}
In[89]:= Transpose[a,{4,1,2,3}];

   Permutation {4, 1, 2, 3} is longer than the dimensions {3, 4} of the array.

is now impossible, although 

In[90]:= a[[3,4,5,6]]
Out[90]= 0
returns still the correct value. Why does Mathematica make this difference?
If you print a, there is no difference.

How can you return to the desired Dimension?


is not possible because a[[1,1,1,1]] gives a mess.

Thanks in advance,

Sascha Unzicker

  • Prev by Date: changing defaults under Mma 2.2.2 for Windows????
  • Next by Date: RE: question: {a,b,c}->{{a,b},{b,c}}??
  • Previous by thread: Re: changing defaults under Mma 2.2.2 for Windows????
  • Next by thread: Problems with high-dimensional lists