10000 feat: add API specification for returning the `k` largest elements by kgryte · Pull Request #722 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

feat: add API specification for returning the k largest elements #722

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into feat/top_k
  • Loading branch information
kgryte authored Dec 12, 2024
commit efb985d0ab26025ad91e06c6009ff8f6c9d97e49
3 changes: 2 additions & 1 deletion src/array_api_stubs/_draft/searching_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
__all__ = [
"argmax",
"argmin",
"count_nonzero",
"nonzero",
"searchsorted",
"top_k",
Expand All @@ -10,7 +11,7 @@
]


from ._types import Optional, Literal, Tuple, array
from ._types import Optional, Literal, Tuple, Union, array


def argmax(x: array, /, *, axis: Optional[int] = None, keepdims: bool = False) -> array:
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0