4,493
edits
(LaTeX symbols to commands) |
Tags: Mobile edit Mobile web edit |
||
Line 182: | Line 182: | ||
└───┴───┴───┴───┴───┘ | └───┴───┴───┴───┴───┘ | ||
</source> | </source> | ||
Now we take each coordinate (i.e. each [[rank]] 0 sub-array) from that and use it to [[Squad index|index]] (<source lang=apl inline>⌷</source>) into the list (a [[rank]] 1 array) of offsets. The result | Now we take each coordinate (i.e. each [[rank]] 0 sub-array) from that and use it to [[Squad index|index]] (<source lang=apl inline>⌷</source>) into the list (a [[rank]] 1 array) of offsets. The result has shape… | ||
<source lang=apl> | <source lang=apl> | ||
⍴xy←indices⌷⍤0 1⊢offsets | ⍴xy←indices⌷⍤0 1⊢offsets |