-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
ENH: Adding keepdims to np.argmin,np.argmax #19211
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0e5817e
keepdims added to np.argmin,np.argmax
czgdp1807 5d66427
Added release notes entry
czgdp1807 4d8f3af
tested for axis=None,keepdims=True
czgdp1807 aa2adc9
Apply suggestions from code review
czgdp1807 f7d4df4
updated interface
czgdp1807 1e725c7
updated interface
czgdp1807 4d2bfab
API changed, implementation to be done
czgdp1807 09433d6
Added reshape approach to C implementation
czgdp1807 8ea07b4
buggy implementation without reshape
czgdp1807 aa73907
TestArgMax, TestArgMin fixed, comments added
czgdp1807 22fbb06
Fixed for matrix
czgdp1807 d04946f
removed unrequired changes
czgdp1807 512b359
fixed CI failure
czgdp1807 da3df5b
fixed linting issue
czgdp1807 828df3b
PyArray_ArgMaxKeepdims now only modifies shape and strides
czgdp1807 91e7530
Comments added to PyArray_ArgMaxKeepdims
czgdp1807 a1c0faa
Updated implementation of PyArray_ArgMinKeepdims to match with PyArra…
czgdp1807 fa5839b
Testing complete for PyArray_ArgMinKeepdims and PyArray_ArgMaxKeepdims
czgdp1807 2cd3ff1
PyArray_ArgMinWithKeepdims both keepdims=True and keepdims=False
czgdp1807 124abe3
matched implementation of PyArray_ArgMaxKeepdims and PyArray_ArgMinKe…
czgdp1807 6bd9f4c
simplified implementation
czgdp1807 55a85d3
Added missing comment
czgdp1807 568251e
removed unwanted header
czgdp1807 9260d40
addressed all the reviews
czgdp1807 06d9610
Removing unwanted changes
czgdp1807 2112709
fixed docs
czgdp1807 e0dd74e
Added new lines
czgdp1807 11d7e33
restored annotations
czgdp1807 eec3e2f
Merge branch 'keepdims' of https://github.com/czgdp1807/numpy into ke…
czgdp1807 4c9f113
parametrized test
czgdp1807 db9c704
Apply suggestions from code review
czgdp1807 11cd597
keyword handling now done in np.argmin/np.argmax
czgdp1807 bb906bf
corrected indendation
czgdp1807 3b72f59
used with pytest.riases(ValueError)
czgdp1807 66adc84
fixed release notes
czgdp1807 4be86dd
removed PyArray_ArgMaxWithKeepdims and PyArray_ArgMinWithKeepdims fro…
czgdp1807 8f9f108
Apply suggestions from code review
czgdp1807 c55aaea
Apply suggestions from code review
czgdp1807 File filter
Filter by extension
8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added reshape approach to C implementation
- Loading branch information
commit 09433d6202f0151c382ebc9d3e997ed5a721afcd
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.