[Jprogramming] amend

Elijah Stone elronnd at elronnd.net
Mon Jun 20 08:51:03 UTC 2022


On Mon, 20 Jun 2022, Raul Miller wrote:

>   9 ''} i.2 2

Coincidentally, this was how my code originally looked.  Then I needed x to be 
a vector instead of a scalar, and the curtains fell.


> Conceptually '' the shape of is a prefix of the shape of i.0 2:

Actually, it needs to be a suffix.  That's the issue.

    7 9 ''}i.2 2
0 1
2 3

Works fine, because 7 9 (shape ,2) is a suffix of the shape of i.0 2, and is 
replicated to all 0 of its 1-cells.  In x m}y, x is replicated to every 
$$x-cell of m{y.

  -E


More information about the Programming mailing list