OK, I guess you could have a workaround.  The problem occurs only when there are no non-sparse entries, which you can detect by (0 = 7&$.)  In that case (x i. y) will be 0 where y matches the sparse element, otherwise (#x).  That would be something like

fixedsvid =. i.`(((#@[)`0:)@.(=3&$.)~)@.(0=7 $. [)

Untested.

Henry Rich

On 8/28/2022 1:24 PM, Raul Miller wrote:
Thanks for fixing it.

(The no workaround bit is disappointing, given how many J versions
this hits. But maybe I can do something for the pritchard sieve...)

Thanks again,


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

Reply via email to