> You are right, that should be s. How could this ever work? > Well, it works well for 2D arrays, which is the most important case... But only for small offsets. diagonal(abs(offset)>1) never worked, as far as I remember. Anyone have a patch? --david