diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-26 08:29:12 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-26 08:29:12 -0400 |
| commit | 17ad29dfe7336be1b410c8356ea58b91c3f46816 (patch) | |
| tree | 2b2dce3d6862af14fed461e3cb9cb1e15cf11c9f | |
| parent | 3440cca7fa1f95fd5649a8a597b5ce6bddd3d68c (diff) | |
Faster rank-1 selection with ⊏
| -rwxr-xr-x | dzref_full | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -190,8 +190,12 @@ SelSub←{ ! ∧´⥊Int¨ 𝕨 ! ∧´⥊ 𝕨 (≥⟜-∧<) ≠𝕩 𝕨↩𝕨+(≠𝕩)×𝕨<0 - c←×´s←1 Cell 𝕩 - ⊑⟜(⥊𝕩)¨(c×𝕨)+⌜s⥊↕c + 𝕨(1≠=∘⊢)◶{ + ⊑⟜𝕩¨𝕨 + }‿{ + c←×´s←1 Cell 𝕩 + ⊑⟜(⥊𝕩)¨(c×𝕨)+⌜s⥊↕c + }𝕩 } Select←ToArray⊸(SelSub _onAxes_ 1) ⊏ ← 0⊸Select ⊘ Select |
