From 7ff821cc93d9e113cd832055cdf3c184be5a9966 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 20 Mar 2025 10:55:28 +0100 Subject: [PATCH 1/2] Add blank lines prior Default value --- dpnp/dpnp_iface_sorting.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dpnp/dpnp_iface_sorting.py b/dpnp/dpnp_iface_sorting.py index 6700dc8ffb81..7e463c50f598 100644 --- a/dpnp/dpnp_iface_sorting.py +++ b/dpnp/dpnp_iface_sorting.py @@ -110,22 +110,26 @@ def argsort( axis : {None, int}, optional Axis along which to sort. If ``None``, the array is flattened before sorting. The default is ``-1``, which sorts along the last axis. + Default: ``-1``. kind : {None, "stable", "mergesort", "radixsort"}, optional Sorting algorithm. The default is ``None``, which uses parallel merge-sort or parallel radix-sort algorithms depending on the array data type. + Default: ``None``. descending : bool, optional Sort order. If ``True``, the array must be sorted in descending order (by value). If ``False``, the array must be sorted in ascending order (by value). + Default: ``False``. stable : {None, bool}, optional Sort stability. If ``True``, the returned array will maintain the relative order of `a` values which compare as equal. The same behavior applies when set to ``False`` or ``None``. Internally, this option selects ``kind="stable"``. + Default: ``None``. Returns @@ -251,22 +255,26 @@ def sort(a, axis=-1, kind=None, order=None, *, descending=False, stable=None): axis : {None, int}, optional Axis along which to sort. If ``None``, the array is flattened before sorting. The default is ``-1``, which sorts along the last axis. + Default: ``-1``. kind : {None, "stable", "mergesort", "radixsort"}, optional Sorting algorithm. The default is ``None``, which uses parallel merge-sort or parallel radix-sort algorithms depending on the array data type. + Default: ``None``. descending : bool, optional Sort order. If ``True``, the array must be sorted in descending order (by value). If ``False``, the array must be sorted in ascending order (by value). + Default: ``False``. stable : {None, bool}, optional Sort stability. If ``True``, the returned array will maintain the relative order of `a` values which compare as equal. The same behavior applies when set to ``False`` or ``None``. Internally, this option selects ``kind="stable"``. + Default: ``None``. Returns From b8b5484b1b6da3c74483b1e237d9a2bb04a0fb90 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 20 Mar 2025 11:01:47 +0100 Subject: [PATCH 2/2] Remove excess space --- dpnp/dpnp_iface_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/dpnp_iface_statistics.py b/dpnp/dpnp_iface_statistics.py index dc21b35796b5..57084d86a449 100644 --- a/dpnp/dpnp_iface_statistics.py +++ b/dpnp/dpnp_iface_statistics.py @@ -837,7 +837,7 @@ def cov( >>> import dpnp as np >>> x = np.array([[0, 2], [1, 1], [2, 0]]).T - Consider two variables, :math:`x_0` and :math:`x_1`, which correlate + Consider two variables, :math:`x_0` and :math:`x_1`, which correlate perfectly, but in opposite directions: >>> x