jsoftware / jsource

J engine source mirror
Other
657 stars 90 forks source link

Error in sparse rank processing on cells that have no non-sparse values #106

Closed jip closed 2 months ago

jip commented 3 years ago
   sa=. 1 (< 1 1)} 1 $. 2 2 ; 0 01 ; 00
   <@(4&$.)"1 sa
+-+
|1|
+-+
   NB. the result expected:
+-+-+
| |1|
+-+-+

Sparse rank, which uses a separate code path, does not execute the verb on cells that have no non-sparse values [1], [2].

References:

  1. [Jbeta] leading empty box is disappearing, Igor Zhuravlov, Thu Sep 9 2021 07:40:06 UTC.
  2. [JWiki] System/Interpreter/Bugs/Errors, Igor Zhuravlov, Thu Sep 9 2021 23:34 UTC.