-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cumsum!/cumprod! wrong when dim>N #15654
Comments
I'm close to a fix here |
Sorry for the bug. And thanks @spencerlyon2 for tackling it. FWIW I don't see any reason this needs to use Base.Cartesian anymore (but whatever fix arrives should be applied). |
It might be worth to consider #14730 as part of the fix if someone decides to rewrite the functions anyway. |
I think the fix is a simple as adding this before any Cartesian magic happens:
|
That fix sounds rather sensible to me. And 👍 to #14730 as a more general approach. |
Discovered by @shashi:
cc: @timholy
The text was updated successfully, but these errors were encountered: