I wrote:
> Solve the torus first:
>
> use |. to wiggle m up & down (and center),
> use |."1 to wiggle those matrices left & right (and center)
>
> ending up with 9 matrices, the original one and eight shifted ones [...]
|. will also accept a two element vector on the left side, specifing
both the up/down and left/right rotations in one go. This extends
as usual to a 9x2 (or 3x3x2) wiggle table on the left, producing all
nine (or 3x3) plane shifts directly.
wiggles =. ,"0/~ _1 0 1
+/+/ wiggles |. m
Martin
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm