aboutsummaryrefslogtreecommitdiff
path: root/dzref_full
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-26 08:29:12 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-26 08:29:12 -0400
commit17ad29dfe7336be1b410c8356ea58b91c3f46816 (patch)
tree2b2dce3d6862af14fed461e3cb9cb1e15cf11c9f /dzref_full
parent3440cca7fa1f95fd5649a8a597b5ce6bddd3d68c (diff)
Faster rank-1 selection with ⊏
Diffstat (limited to 'dzref_full')
-rwxr-xr-xdzref_full8
1 files changed, 6 insertions, 2 deletions
diff --git a/dzref_full b/dzref_full
index ec77a0d7..288f24c2 100755
--- a/dzref_full
+++ b/dzref_full
@@ -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