Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ENH: Add usage of new sorting dtype slots#109

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
MaanasArora wants to merge1 commit intonumpy:main
base:main
Choose a base branch
Loading
fromMaanasArora:enh/new-dtype-sorting

Conversation

MaanasArora
Copy link

@MaanasAroraMaanasArora commentedMay 14, 2025
edited
Loading

Note: this PR depends onnumpy/numpy#28516 and will break without it.

This is to start writing some examples for the new sorting slots innumpy/numpy#28516. Currently, just a patch to use the newsort_compare slot for mpfdtype: this is the only place I found sorting-related features to be implemented already but there's probably ways we can optimize it further for the various dtypes.

I realize this is a bit spares right now, mainly because I wonder if any further optimizations are called for inget_sort_function itself. One could reimplement quicksort, for example, and I can see a case for things like bucketing by sign or exponent. Not sure if that would be too complex for now. But if we don't, we don't have an example for most of the slots...

@MaanasAroraMaanasArora marked this pull request as draftMay 14, 2025 05:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@MaanasArora

[8]ページ先頭

©2009-2025 Movatter.jp