Skip to content

Support buffer protocol objects as advanced index keys#2889

Merged
antonwolfy merged 21 commits into
masterfrom
support_buffer_protocol_indexing
May 19, 2026
Merged

Support buffer protocol objects as advanced index keys#2889
antonwolfy merged 21 commits into
masterfrom
support_buffer_protocol_indexing

Conversation

@vlad-perevezentsev
Copy link
Copy Markdown
Contributor

This PR proposes by adding support for buffer protocol objects (array.array, memoryview etc.) as advanced index keys
These changes were proposed in #2872 as an extension to the advanced indexing support.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Array API standard conformance tests for dpnp=0.21.0dev0=py313h509198e_60 ran successfully.
Passed: 1355
Failed: 5
Skipped: 16

Comment thread dpnp/dpnp_array.py Outdated
Comment thread dpnp/dpnp_array.py Outdated
Base automatically changed from fix_inplace_indexind_4d to master May 6, 2026 09:41
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@antonwolfy antonwolfy added this to the 0.21.0 release milestone May 6, 2026
Comment thread dpnp/dpnp_array.py Outdated
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 12, 2026

Coverage Status

coverage: 78.251% (+0.02%) from 78.233% — support_buffer_protocol_indexing into master

Copy link
Copy Markdown
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with small nit below

Comment thread dpnp/dpnp_array.py
@antonwolfy antonwolfy merged commit db2ee80 into master May 19, 2026
75 checks passed
@antonwolfy antonwolfy deleted the support_buffer_protocol_indexing branch May 19, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants