From cf5998068550ababcc18118fe0d543414561c129 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 2 Jul 2026 16:15:49 +0200 Subject: [PATCH 1/4] Remove TODO comment for dpnp.ndarray.resize implementation --- dpnp/dpnp_array.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dpnp/dpnp_array.py b/dpnp/dpnp_array.py index cd78c4556ae..14cd519bbe8 100644 --- a/dpnp/dpnp_array.py +++ b/dpnp/dpnp_array.py @@ -1806,8 +1806,6 @@ def reshape(self, /, *shape, order="C", copy=None): shape = shape[0] return dpnp.reshape(self, shape, order=order, copy=copy) - # 'resize', - def round(self, /, decimals=0, *, out=None): """ Return array with each element rounded to the given number of decimals. From 7873b4e812792ce9ab92c84ece60e4d45e2737b0 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 2 Jul 2026 16:17:31 +0200 Subject: [PATCH 2/4] No documentation will be rendered for ndarray.resize --- doc/reference/ndarray.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/reference/ndarray.rst b/doc/reference/ndarray.rst index 3e217a68fd8..046648665f9 100644 --- a/doc/reference/ndarray.rst +++ b/doc/reference/ndarray.rst @@ -168,15 +168,14 @@ Array conversion Shape manipulation ------------------ -For reshape, resize, and transpose, the single tuple argument may be -replaced with ``n`` integers which will be interpreted as an n-tuple. +For reshape and transpose, the single tuple argument may be replaced with ``n`` +integers which will be interpreted as an n-tuple. .. autosummary:: :toctree: generated/ :nosignatures: ndarray.reshape - ndarray.resize ndarray.transpose ndarray.swapaxes ndarray.flatten From 1204444a48f4b174007f151265e9ddc5d5992ea2 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 2 Jul 2026 16:19:41 +0200 Subject: [PATCH 3/4] Remove any ref on resize method from the docstrings --- dpnp/dpnp_iface_manipulation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index 559884acb04..3a6e263440a 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -3070,9 +3070,7 @@ def resize(a, new_shape): Return a new array with the specified shape. If the new array is larger than the original array, then the new array is - filled with repeated copies of `a`. Note that this behavior is different - from ``a.resize(new_shape)`` which fills with zeros instead of repeated - copies of `a`. + filled with repeated copies of `a`. For full documentation refer to :obj:`numpy.resize`. @@ -3092,7 +3090,6 @@ def resize(a, new_shape): See Also -------- - :obj:`dpnp.ndarray.resize` : Resize an array in-place. :obj:`dpnp.reshape` : Reshape an array without changing the total size. :obj:`dpnp.pad` : Enlarge and pad an array. :obj:`dpnp.repeat` : Repeat elements of an array. From 33bbd1bdefa299b2eaa780b807cbab3fd2ed5d33 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 2 Jul 2026 16:22:47 +0200 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70bf2a61a10..4d2ab51837b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ This release is compatible with NumPy 2.5. * Removed support for arrays of 2-dimensional vectors in `dpnp.cross`, which now requires (arrays of) 3-dimensional vectors and raises `ValueError` otherwise [#2950](https://github.com/IntelPython/dpnp/pull/2950) * Removed `dpnp.row_stack` in favor of `dpnp.vstack` [#2956](https://github.com/IntelPython/dpnp/pull/2956) +* Removed all references to the unimplemented `dpnp.ndarray.resize` method from the documentation [#2989](https://github.com/IntelPython/dpnp/pull/2989) ### Fixed