diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-26 13:30:34 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-26 13:30:34 -0400 |
| commit | 47005fec6f720b893e2417995384075e50135c98 (patch) | |
| tree | d5660505455b29970a491719d34b9d1e89388f06 /src | |
| parent | 38095f28900b5d9c7c9fd97d700a9102df919f3b (diff) | |
Fix result of ⊔ on multiple axes where a non-leading one has a length extension
Diffstat (limited to 'src')
| -rw-r--r-- | src/r.bqn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -671,7 +671,7 @@ GroupGen←{ ld←(Join≢⌜𝕨)-n↑≢𝕩 "𝕨⊔𝕩: Lengths of 𝕨 must equal to 𝕩, or one more only in a rank-1 component" ! 1∧´(0⊸≤∧≤⟜(r/1=r))ld dr←r⌊(0»+`r)⊏ld∾⟨0⟩ - l←≠⌜𝕨↩⥊⌜𝕨 ⋄ LS←∾⟜(n Cell 𝕩) Reshape 𝕩˙ + l←dr-˜≠⌜𝕨↩⥊⌜𝕨 ⋄ LS←∾⟜(n Cell 𝕩) Reshape 𝕩˙ S←⊏⟜(LS⟨1×´l⟩) (LS 0⌜𝕨) Fill dr (1≠≠∘⊢)◶⟨S _group○(0⊸⊑), S⌜ ·+⌜⌜´ (⌽×`1»⌽l) × ⊢_group¨⟩ 𝕨 } |
