Fixed for next beta.  (x # y) operates inplace when possible, and can change the length of the y argument if that becomes the result area.  Here the y was a virtual block and the shape/rank/type needed to be restored after the inplace operation.

Workaround: use (]]#) instead of #

Henry Rich

On 3/3/2023 9:15 AM, Raul Miller wrote:
    a=: 3#.inv 49401 10852 55070 6484 14621 8515
    {{ {. (#~ <&2) y }}"1 |: a
0 1 1 1 1 0 0 1 0 0
    ([: {. (#~ <&2))"1 |: a
0 1 1 1 0 0 0 0 0 0

This bug was not present in j64-807 (though I have to use the older 3
:'' form there). It is present in j901.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to