Re: Help with Dependency question

2005-08-21 Thread Sebastian Pop
shreyas krishnan wrote: > Hi, > For this simple loop, I get the following distance and direction > vector > > Distance {1,-1) > Direction (2,0) > > for(J = 1; J <= N-1; J++) > for(I = 1; I <= N-1; I++) > { > XX = X[I+1][J]; > XY = X[I][J+1]; > } > >

Help with Dependency question

2005-08-20 Thread shreyas krishnan
Hi, For this simple loop, I get the following distance and direction vector Distance {1,-1) Direction (2,0) for(J = 1; J <= N-1; J++) for(I = 1; I <= N-1; I++) { XX = X[I+1][J]; XY = X[I][J+1]; } Can some body explain why thats so ? thanks Shreyas