You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{¯2-⌿(0/⍨⊃⍺)⍪(1⌽1@1⊢⍺)⌿+⍀⍵} is better but it is very rare to actually need this, and it makes the code much more involved (though at next to no performance cost). I think it better to stipulate that all the fast partitioned algorithms require Av beginning with 1.
Yeah I agree, the original is much simpler. Might be nice to add comments to aplcart examples.
Here is a prototype format: APLCart description in the header, main example in code, comments in the footer:
The fast partitioned sum does not return the same results as
+/¨⍺⊂⍵
if⍺
does not start with a1
This can be rectified with some conditional modification of the partition vector
The text was updated successfully, but these errors were encountered: