diff --git a/CHANGELOG.md b/CHANGELOG.md index 70bf2a61a103..4d2ab51837bf 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 diff --git a/doc/reference/ndarray.rst b/doc/reference/ndarray.rst index 3e217a68fd88..046648665f93 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 diff --git a/dpnp/dpnp_array.py b/dpnp/dpnp_array.py index cd78c4556ae1..14cd519bbe84 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. diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index 559884acb049..3a6e263440a7 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.