Name: Anonymous 2012-01-16 8:59
for (I = 0; I < N; I++)
for (J = 0; J < M; J++)
update(Xs[I][J]);or
for (I = 0; I < N; I++)
for (J = 0; J < M; J++)
update(Xs[J][I]);???
for (I = 0; I < N; I++)
for (J = 0; J < M; J++)
update(Xs[I][J]);
for (I = 0; I < N; I++)
for (J = 0; J < M; J++)
update(Xs[J][I]);i++ and ++i are different things, but OP is using it as they are equal even though they result in the same thing.