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 @@ -25,6 +25,7 @@ This release is compatible with NumPy 2.5.
* Updated `dpnp.linalg.eig` and `dpnp.linalg.eigvals` documentation to reflect NumPy's always-complex eigenvalue output for general matrices [#2953](https://github.com/IntelPython/dpnp/pull/2953)
* Clarified support for negative axes in `dpnp.transpose`/`dpnp.permute_dims` documentation [#2940](https://github.com/IntelPython/dpnp/pull/2940)
* Allowed `dpnp.take` and `dpnp.compress` to cast the result into an `out` array of a different but same-kind dtype [#2959](https://github.com/IntelPython/dpnp/pull/2959)
* Clarified the summary in `dpnp.reshape` and `dpnp.ndarray.reshape` docstrings [#2964](https://github.com/IntelPython/dpnp/pull/2964)

### Deprecated

Expand Down
6 changes: 3 additions & 3 deletions dpnp/dpnp_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ def repeat(self, repeats, axis=None):

def reshape(self, /, *shape, order="C", copy=None):
"""
Return an array containing the same data with a new shape.
Return a reshaped array without changing data.

Refer to :obj:`dpnp.reshape` for full documentation.

Expand Down Expand Up @@ -2399,8 +2399,8 @@ def transpose(self, *axes):
:obj:`dpnp.transpose` : Equivalent function.
:obj:`dpnp.ndarray.ndarray.T` : Array property returning the array
transposed.
:obj:`dpnp.ndarray.reshape` : Give a new shape to an array without
changing its data.
:obj:`dpnp.ndarray.reshape` : Return a reshaped ndarray without
changing data.

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion dpnp/dpnp_iface_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2951,7 +2951,7 @@ def require(a, dtype=None, requirements=None, *, like=None):

def reshape(a, /, shape, order="C", *, copy=None):
"""
Gives a new shape to an array without changing its data.
Return a reshaped ndarray without changing data.

For full documentation refer to :obj:`numpy.reshape`.

Expand Down
Loading