12-06-2006 12:29 AM
12-06-2006 12:44 AM
12-06-2006 01:25 AM - edited 12-06-2006 01:25 AM

Message Edited by TonP on 12-06-2006 08:26 AM
12-06-2006 01:37 AM
I was also working on a solution that looks like the one TonP posted. I then had problems with memory. Basically the way that is visible in TonP's picture is correct - rather replace array elements than add new elements (because this causes a rebuild of the array every time).
So if you really have this amount of data, you need enough memory or you should think about other modifications.
12-06-2006 01:52 AM
12-06-2006 05:43 PM
12-06-2006 09:07 PM
Thank you all! I need to do this transpose because of other user's need. TonP gave me some good idea although I can't open the code in v8.2. I am still using v8.0 and no time to upgrade it. I have looked at the discussion mentioned by AdnanZ and got some idea for my posted code but I still got slow speed. I took more than 90 seconds to transpose 500x55x512 array in 3.5GHz machine on WinXP. Very weird, and that's why I post my problem and look for help.
Thank you all again for your suggestions and discussions.
12-07-2006 08:06 AM
Ton wrote "Anyone?"
I don't have time (or enough coffee in my head) to takle this challenge now but I believe strategic use of "re-shape array" and "transpose 2-d array" may help (think Rubic's cube).
Ben