aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-26 13:30:34 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-26 13:30:34 -0400
commit47005fec6f720b893e2417995384075e50135c98 (patch)
treed5660505455b29970a491719d34b9d1e89388f06 /src
parent38095f28900b5d9c7c9fd97d700a9102df919f3b (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.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r.bqn b/src/r.bqn
index b45a5f50..5f51cfcf 100644
--- a/src/r.bqn
+++ b/src/r.bqn
@@ -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¨⟩ 𝕨
}