diff --git a/CHANGELOG.md b/CHANGELOG.md index 2267827dc046..885cc73bab4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/dpnp/dpnp_array.py b/dpnp/dpnp_array.py index 00401c6c7905..c5a85971f473 100644 --- a/dpnp/dpnp_array.py +++ b/dpnp/dpnp_array.py @@ -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. @@ -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 -------- diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index daf39eb37dac..6ef4400562fb 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -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`.