8000 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
Remove whitespace
  • Loading branch information
kgryte authored Jan 25, 2024
commit 76873d83c57041c9a1d2e0b8b7aabb80c014cdbd
4 changes: 2 additions & 2 deletions src/array_api_stubs/_draft/searching_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def top_k_values(
- ``'smallest'``: return the indices of the ``k`` smallest elements.

Default: ``'largest'``.

Returns
-------
out: array
Expand All @@ -271,7 +271,7 @@ def top_k_values(
- Conforming implementations may support complex numbers; however, inequality comparison of complex numbers is unspecified and thus implementation-dependent (see :ref:`complex-number-ordering`).
"""


def where(condition: array, x1: array, x2: array, /) -> array:
"""
Returns elements chosen from ``x1`` or ``x2`` depending on ``condition``.
Expand Down
0