Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions doc/reference/ndarray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions dpnp/dpnp_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 1 addition & 4 deletions dpnp/dpnp_iface_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand All @@ -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.
Expand Down
Loading