From 550531c5a20277e4356ea0f14cdb4eeba4dbce29 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Thu, 4 Jun 2026 05:40:04 -0700 Subject: [PATCH 1/2] Mention negative axis support in transpose/permute_dims docs --- dpnp/dpnp_iface_manipulation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index b96d36a40e6..4c0522b242b 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -3908,6 +3908,7 @@ def transpose(a, axes=None): axes : {None, tuple or list of ints}, optional If specified, it must be a tuple or list which contains a permutation of [0, 1, ..., N-1] where N is the number of axes of `a`. + Negative indices can also be used to specify axes. The `i`'th axis of the returned array will correspond to the axis numbered ``axes[i]`` of the input. If not specified or ``None``, defaults to ``range(a.ndim)[::-1]``, which reverses the order of From ff884378d7a60c8d77ab05186197f040fe8d4cd1 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Thu, 4 Jun 2026 05:50:51 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef8b88bc9e3..6a137fb1cdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ This release is compatible with NumPy 2.4.5. * Updated tests to align with NumPy 2.4.5 compatibility [gh-2920](https://github.com/IntelPython/dpnp/pull/2920) * Replaced `.pxi` includes in `dpnp.tensor` with modular `.pxd`/`.pyx` Cython imports [#2913](https://github.com/IntelPython/dpnp/pull/2913) * Reimplemented `dpnp.eye` and `dpnp.tensor.eye` with a branchless kernel [gh-2937](https://github.com/IntelPython/dpnp/pull/2937) +* Clarified support for negative axes in `dpnp.transpose`/`dpnp.permute_dims` documentation [#2940](https://github.com/IntelPython/dpnp/pull/2940) ### Deprecated