diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-21 11:02:37 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-06-21 11:02:37 -0400 |
| commit | 514c12c131780119536a39dbee4d12517b5d5c5f (patch) | |
| tree | e15e950fadf32f408377bbc6af6307c7871cb6a4 /src | |
| parent | 57b40621a807f089cbc08c51005b9f0b70377ba3 (diff) | |
Use recursive doubling with ∾ for Reshape
Diffstat (limited to 'src')
| -rw-r--r-- | src/r1.bqn | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -616,8 +616,8 @@ Reshape←{ s↩p⊣◶⊢‿a¨s {d∾↩(Fill d)⌜↕𝕩-n⋄n}⍟(n⊸<)⍟(3=t)lp×a } s - s⥊{ - 𝕩(0<n)◶⟨<∘Fill⊸(⊣⌜)⋄{i←¯1⋄m←n-1⋄{𝕩⋄(i+↩1-n×i=m)⊑d}⌜𝕩}⟩↕l + s⥊(0<n)◶{(<Fill𝕩)⊣⌜↕l}‿{ + l >⟜≠◶⟨↑, ⊣(⊢∾-⟜≠↑⊢)÷⟜2⊸{𝕨𝕊⟜(∾˜)⍟(>⟜≠)𝕩}⟩ 𝕩 }_fillBy_⊢⍟(1-l=n)d } |
