Look at the shape of m{y and give x that shape.  Looks like it should be 3
3 3, but I'm away from my machine.

Henry Rich

On Fri, Jul 22, 2022, 5:50 PM 'Viktor Grigorov' via Programming <
[email protected]> wrote:

> Hey,
>
> I just got to using scatter amend. I cannot figure out in what form it
> wants x when everything is boxed. It whines about length. My case is:
>
> y is boxed array of shape 3 3 3 3
> m is a boxed array of shape 3, ultimately selecting 21 cells, a face, row,
> and column (if you "9 9$," the y)
>
> For x, I've tried:i.21
> <"0 i.21
> <<"0 i.21
> i.21 1
> <"0 i. 21 1
>
> I tried with 27 too, in case it does 3 runs of 9 each.
> MWE:
> Q=:i.3
> 9 9 $, (???) ((1;1;Q;Q);(Q;Q;1;1);,(<1;Q;1;Q)) } <"0 i.4#3
>
> Non-scalar value don't work. What am I doing wrong?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to