diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-12 09:19:08 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-12 09:19:08 -0500 |
| commit | abfa39c6fc52e9d58e0c205977af2073eaf05c10 (patch) | |
| tree | 4427984497ad6f943b3408e462b578238c93ff76 /src | |
| parent | 15a04da04ed5b803686fa9b49e407d9b90ce184e (diff) | |
Special case extensions to remove checks from /⁼ and F⁼⁼
Diffstat (limited to 'src')
| -rw-r--r-- | src/r1.bqn | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -212,7 +212,6 @@ Indices←{ IndicesInv←{ IA 1==𝕩 IA 1×´Nat⌜𝕩 - IX (0⊸≤)◶⟨1,1×´(⊢≤○(⊑⟜𝕩)1⊸+)⌜∘↕⟩1-˜≠𝕩 GroupLen 𝕩 } SelfClas ← (PermInv∘⍋∘Rep˜⊏˜¯1+`⊢) _self @@ -861,9 +860,8 @@ SwapInverse ← INF _lookup_ ⟨ ⟩ ⌜ ↩ _table ¨ ↩ _each -CheckInv ← (4=0⊸⊑)◶⟨"+-÷⋆√¬"_glyphLookup_(6=↕7)1⊸⊑,¬·'⁼'_isGlyph 2⊸⊑⟩Decompose Mod1Inverse ← INF˙ _lookup_ ⟨ - '⁼', {𝕏_invChk_(𝕏{i←Inverse𝕗⋄𝕨I𝕩})}⍟CheckInv + '⁼', ⊢ '˜', {SwapInverse𝕩} '¨', {𝕏⁼¨ ⊣·IX 0<≡∘⊢} '⌜', {𝕏⁼⌜⊘(IA∘0) ⊣·IX 0<≡∘⊢} @@ -876,7 +874,7 @@ Mod2Inverse ← INF˙ _lookup_ ⟨ '∘', AtopInverse '○', {Fi←𝕎⁼⋄𝕏⁼ Fi⊘(𝕏⊸Fi)} '⌾', {𝕎⁼⌾𝕏} # Need to verify for computation Under - '⍟', Int∘⊢◶⟨IA∘0˙,0⊸≤◶{𝕎⍟(-𝕩)_invChk_(𝕎⍟𝕩)}‿{𝕎⍟(-𝕩)}⟩ + '⍟', Int∘⊢◶⟨IA∘0˙,{𝕎⍟(-𝕩)}⟩ '⊘', {(𝕎⁼)⊘(𝕏⁼)} '⊸', IsConstant∘⊣ ⊣◶{INF⊘𝕏}‿⊢ {𝕎⊸(𝕏⁼)} '⟜', {(𝕨IsConstant∘⊢◶⟨IA∘0˙,{𝕩𝕎{SwapInverse𝕗}⊢}⟩𝕩)⊘(𝕏⁼𝕎⁼)} |
