8000 feat: add support for integer array indexing by kgryte · Pull Request #900 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

feat: add support for integer array indexing #900

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 31 commits into from
Feb 22, 2025
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
60acb1e
docs: fix typo
kgryte Feb 17, 2025
d3c5a2e
docs: remove copy regarding equivalent sequences
kgryte Feb 20, 2025
19f1f5d
docs: update notation
kgryte Feb 20, 2025
a4b6033
docs: remove explicit exception prescription
kgryte Feb 20, 2025
304c446
docs: revise indexing guidance
kgryte Feb 20, 2025
a1e24cb
docs: split into multiple sentences
kgryte Feb 20, 2025
f51cab1
docs: update copy
kgryte Feb 20, 2025
88757ea
docs: fix copy
kgryte Feb 20, 2025
d39814e
docs: update copy
kgryte Feb 20, 2025
6b93ab9
docs: add note
kgryte Feb 20, 2025
b3e4288
docs: update copy
kgryte Feb 20, 2025
a2a786e
docs: add note
kgryte Feb 20, 2025
911ee68
docs: update copy
kgryte Feb 20, 2025
acb49cd
docs: update guidance
kgryte Feb 21, 2025
315ee48
fix: update copy
kgryte Feb 21, 2025
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
docs: remove explicit exception prescription
  • Loading branch information
kgryte committed Feb 20, 2025
commit a4b603375e496b7d61df60d84f17a65bac34ec4e
2 changes: 1 addition & 1 deletion spec/draft/API_specification/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ An array must support indexing an array having more than one dimension by an ind

- If ``T`` consists of only integers and integer arrays, with at least one of those integer arrays being a one-dimensional integer array ``J`` having shape ``S2 = (m,)``, where ``m`` is greater than or equal to the number of elements in any other integer array in ``T``, each element of ``T`` must be broadcast to the same shape as ``J``.

- An ``IndexError`` exception must be raised if any element of ``T`` is not broadcast-compatible with ``J`` (see :ref:`broadcasting`).
- An exception must be raised if any element of ``T`` is not broadcast-compatible with ``J`` (see :ref:`broadcasting`).

- After broadcasting, ``T`` must be equivalent to a tuple ``U = (u1, u2, ..., uN)`` containing only integer arrays having shape ``S2``.

Expand Down
0