Skip to content

Remove references to the unimplemented dpnp.ndarray.resize method#2989

Open
antonwolfy wants to merge 4 commits into
masterfrom
remove-any-ref-on-ndarray.resize
Open

Remove references to the unimplemented dpnp.ndarray.resize method#2989
antonwolfy wants to merge 4 commits into
masterfrom
remove-any-ref-on-ndarray.resize

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

NumPy deprecated the numpy.ndarray.resize method in NumPy 2.5.

While dpnp has never implemented the in-place dpnp.ndarray.resize method.
However, several places in the documentation and docstrings still referenced the method as if it existed or was planned, which is misleading to users and would only diverge further from NumPy now that the method is deprecated upstream.

This PR removes all such references.

  • 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.21.0 release milestone Jul 2, 2026
@antonwolfy antonwolfy self-assigned this Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.11%. remained the same — remove-any-ref-on-ndarray.resize into master

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev2=py313h509198e_14 ran successfully.
Passed: 1372
Failed: 3
Skipped: 5

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.

2 participants