From f593e2f3a032765be58cf79d771c23ddc9ac94fe Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 4 Mar 2025 14:59:19 +0100 Subject: [PATCH 1/2] Update docstrings in bitwise namespace --- dpnp/dpnp_iface_bitwise.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dpnp/dpnp_iface_bitwise.py b/dpnp/dpnp_iface_bitwise.py index f7f19f42a085..de37d75d525a 100644 --- a/dpnp/dpnp_iface_bitwise.py +++ b/dpnp/dpnp_iface_bitwise.py @@ -84,6 +84,7 @@ def binary_repr(num, width=None): at least a sufficient number of bits for `num` to be represented in the designated form. If the `width` value is insufficient, an error is raised. + Default: ``None``. Returns @@ -145,9 +146,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns @@ -232,9 +235,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns @@ -310,9 +315,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns @@ -386,9 +393,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns @@ -472,9 +481,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns ------- @@ -549,9 +560,11 @@ def binary_repr(num, width=None): out : {None, dpnp.ndarray, usm_ndarray}, optional Output array to populate. Array must have the correct shape and the expected data type. + Default: ``None``. order : {"C", "F", "A", "K"}, optional Memory layout of the newly output array, if parameter `out` is ``None``. + Default: ``"K"``. Returns From 916ef9ef2bb6dabb4555b85c350dce4199f5f732 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 4 Mar 2025 15:02:05 +0100 Subject: [PATCH 2/2] Update docstring of the file --- dpnp/dpnp_iface_bitwise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/dpnp_iface_bitwise.py b/dpnp/dpnp_iface_bitwise.py index de37d75d525a..71ca72fd52ad 100644 --- a/dpnp/dpnp_iface_bitwise.py +++ b/dpnp/dpnp_iface_bitwise.py @@ -25,7 +25,7 @@ # ***************************************************************************** """ -Interface of the Binary operations of the DPNP +Interface of the Bitwise part of the DPNP Notes -----