Re: [Tutor] rotation within arrays

2007-07-04 Thread Bob Gailer
Andy Cheesman wrote: > Dear People, > > I wondering if any of you lovely people can make a suggestion on a > problem which I have with a n dimensional array. > For example, I've a 3x3 array What mechanism (module?) are you using to store the array? Or are you asking us for a recommendation? > and

Re: [Tutor] rotation within arrays

2007-07-04 Thread Alan Gauld
"Andy Cheesman" <[EMAIL PROTECTED]> > The problem which I have is that I now need to rotated alternative > layer > of the arrays but I still need to have the original mapping i.e 3 -> > 12. Is your problem how to rotate the array? Or how to preserve the mapping? or both? I don't know offhand

[Tutor] rotation within arrays

2007-07-04 Thread Andy Cheesman
Dear People, I wondering if any of you lovely people can make a suggestion on a problem which I have with a n dimensional array. For example, I've a 3x3 array and I have been mapping an element from 1D to the one directly above it. 3->12 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 The problem