-
-
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
Deprecate v0 in accumulate in favor of init keyword #27859
Conversation
26ebd91
to
f1f7129
Compare
e680568
to
250e0ca
Compare
Looks like we have a couple of test errors on this PR. |
7f3e49f
to
3b92e81
Compare
I got some time to look at this again. Funniliy enough, I had to add functionality to make this work cleanly. 😆 With this change, |
For some reason this might not be working with offset arrays... I'm actually not sure how I broke that? |
Also @StefanKarpinski not sure if this deserves a similar milestone to the |
6f0cb00
to
c4bda2e
Compare
So I found some questionable behavior regarding indices of
I suspect this is a bug (cc @timholy @mbauman). Because these are a |
xref #27986 |
c4bda2e
to
0bb1fa2
Compare
0bb1fa2
to
95af0c2
Compare
Pending further comments, if this passes CI I'll merge (only 4 milestone items left, and this is one of them!) |
726e614
to
6c85116
Compare
Plus add relevant tests
6c85116
to
f34f387
Compare
Travis failures were FileWatching for Mac and in dep-gathering for Linux. |
@@ -266,7 +286,7 @@ julia> accumulate!(-, B, A, dims=1); | |||
|
|||
julia> B | |||
2×2 Array{Int64,2}: | |||
1 2 | |||
1, 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheeky little comma that breaks CI!
Implements the same as #27711 for
accumulate
andaccumulate!
.