05-11-2009 01:07 PM - edited 05-11-2009 01:08 PM
James R wrote:Tinnitus I have to dissagree with your method to eliminate the transpose array
I fully agree. You cannot swap the inputs to "reshape array" without completely changing the outcome.
In this particular case, the reshape array followd by transpose is however not very memory efficient, because both nodes require a new buffer allocation for the (potentially large) array. It would be much easier to operate directly on the 1D array, e.g. as follows.
Why reshuffle the entire input array twice if all we really need is to look at a few small subsets? That would only be justifyable if we need the transposed 2D array elsehwere anyway. 😉
05-11-2009 06:24 PM
Yes you are right,
the thing to know is what lsass 1Darray is 12345678,12345678,12345678.... or 11111111 22222222,33333333,44444444,.....
05-12-2009 12:57 AM
Hello evryone!!!
Thanks for the great help. I have successfully been able to do what I want to do. I used the reshape array with the size multiplied by iteration value as my index and it works perfectly. Huge THANKS to all:)
Btw, my array is a binary one like...11100001111000..etc