Skip to content

Add dpnp.ndarray.__contains__ #2534

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 5 commits into from
Jul 21, 2025
Merged

Add dpnp.ndarray.__contains__ #2534

merged 5 commits into from
Jul 21, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 21, 2025

The PR implements __contains__ method which needs to define the in operator for a dpnp.ndarray.

  • 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?

@antonwolfy antonwolfy added this to the 0.19.0 release milestone Jul 21, 2025
@antonwolfy antonwolfy self-assigned this Jul 21, 2025
@antonwolfy antonwolfy changed the title Add dpnp,ndarray.__contains__ Add dpnp.ndarray.__contains__ Jul 21, 2025
Copy link
Contributor

github-actions bot commented Jul 21, 2025

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

Copy link
Contributor

github-actions bot commented Jul 21, 2025

Array API standard conformance tests for dpnp=0.19.0dev1=py313h509198e_20 ran successfully.
Passed: 1226
Failed: 1
Skipped: 9

@coveralls
Copy link
Collaborator

coveralls commented Jul 21, 2025

Coverage Status

coverage: 72.097% (+0.002%) from 72.095%
when pulling 04be718 on add_seq_contains
into 307fc66 on master.

Copy link
Collaborator

@vtavana vtavana left a comment

Choose a reason for hiding this comment

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

Thank you, @antonwolfy!

@antonwolfy antonwolfy merged commit 876e940 into master Jul 21, 2025
98 checks passed
@antonwolfy antonwolfy deleted the add_seq_contains branch July 21, 2025 17:47
github-actions bot added a commit that referenced this pull request Jul 21, 2025
The PR implements `__contains__` method which needs to define the `in`
operator for a `dpnp.ndarray`. 876e940
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.

3 participants