@@ -130,21 +130,17 @@ def binary_repr(num, width=None):
130130
131131_BITWISE_AND_DOCSTRING = """
132132Computes the bitwise AND of the underlying binary representation of each
133- element `x1_i` of the input array `x1` with the respective element `x2_i`
134- of the input array `x2`.
133+ element :math: `x1_i` of the input array `x1` with the respective element
134+ :math:`x2_i` of the input array `x2`.
135135
136136For full documentation refer to :obj:`numpy.bitwise_and`.
137137
138138Parameters
139139----------
140140x1 : {dpnp.ndarray, usm_ndarray, scalar}
141- First input array, expected to have integer or boolean data type.
142- Both inputs `x1` and `x2` can not be scalars at the same time.
141+ First input array, expected to have an integer or boolean data type.
143142x2 : {dpnp.ndarray, usm_ndarray, scalar}
144- Second input array, also expected to have integer or boolean data
145- type. Both inputs `x1` and `x2` can not be scalars at the same time.
146- If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
147- (which becomes the shape of the output).
143+ Second input array, also expected to have an integer or boolean data type.
148144out : {None, dpnp.ndarray, usm_ndarray}, optional
149145 Output array to populate.
150146 Array must have the correct shape and the expected data type.
@@ -175,6 +171,13 @@ def binary_repr(num, width=None):
175171:obj:`dpnp.binary_repr` : Return the binary representation of the input number
176172 as a string.
177173
174+ Notes
175+ -----
176+ At least one of `x1` or `x2` must be an array.
177+
178+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
179+ (which becomes the shape of the output).
180+
178181Examples
179182--------
180183>>> import dpnp as np
@@ -206,6 +209,7 @@ def binary_repr(num, width=None):
206209'1100'
207210>>> np.bitwise_and(np.array([14, 3]), 13)
208211array([12, 1])
212+
209213"""
210214
211215bitwise_and = DPNPBinaryFunc (
@@ -225,7 +229,7 @@ def binary_repr(num, width=None):
225229Parameters
226230----------
227231x : {dpnp.ndarray, usm_ndarray}
228- Input array, expected to have integer or boolean data type.
232+ Input array, expected to have an integer data type.
229233out : {None, dpnp.ndarray, usm_ndarray}, optional
230234 Output array to populate.
231235 Array must have the correct shape and the expected data type.
@@ -272,21 +276,17 @@ def binary_repr(num, width=None):
272276
273277_BITWISE_OR_DOCSTRING = """
274278Computes the bitwise OR of the underlying binary representation of each
275- element `x1_i` of the input array `x1` with the respective element `x2_i`
276- of the input array `x2`.
279+ element :math: `x1_i` of the input array `x1` with the respective element
280+ :math:`x2_i` of the input array `x2`.
277281
278282For full documentation refer to :obj:`numpy.bitwise_or`.
279283
280284Parameters
281285----------
282286x1 : {dpnp.ndarray, usm_ndarray, scalar}
283- First input array, expected to have integer or boolean data type.
284- Both inputs `x1` and `x2` can not be scalars at the same time.
287+ First input array, expected to have an integer or boolean data type.
285288x2 : {dpnp.ndarray, usm_ndarray, scalar}
286- Second input array, also expected to have integer or boolean data
287- type. Both inputs `x1` and `x2` can not be scalars at the same time.
288- If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
289- (which becomes the shape of the output).
289+ Second input array, also expected to have an integer or boolean data type.
290290out : {None, dpnp.ndarray, usm_ndarray}, optional
291291 Output array to populate.
292292 Array must have the correct shape and the expected data type.
@@ -317,6 +317,13 @@ def binary_repr(num, width=None):
317317:obj:`dpnp.binary_repr` : Return the binary representation of the input number
318318 as a string.
319319
320+ Notes
321+ -----
322+ At least one of `x1` or `x2` must be an array.
323+
324+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
325+ (which becomes the shape of the output).
326+
320327Examples
321328--------
322329>>> import dpnp as np
@@ -339,6 +346,7 @@ def binary_repr(num, width=None):
339346array(29)
340347>>> np.binary_repr(29)
341348'11101'
349+
342350"""
343351
344352bitwise_or = DPNPBinaryFunc (
@@ -352,21 +360,17 @@ def binary_repr(num, width=None):
352360
353361_BITWISE_XOR_DOCSTRING = """
354362Computes the bitwise XOR of the underlying binary representation of each
355- element `x1_i` of the input array `x1` with the respective element `x2_i`
356- of the input array `x2`.
363+ element :math: `x1_i` of the input array `x1` with the respective element
364+ :math:`x2_i` of the input array `x2`.
357365
358366For full documentation refer to :obj:`numpy.bitwise_xor`.
359367
360368Parameters
361369----------
362370x1 : {dpnp.ndarray, usm_ndarray, scalar}
363- First input array, expected to have integer or boolean data type.
364- Both inputs `x1` and `x2` can not be scalars at the same time.
371+ First input array, expected to have an integer or boolean data type.
365372x2 : {dpnp.ndarray, usm_ndarray, scalar}
366- Second input array, also expected to have integer or boolean data
367- type. Both inputs `x1` and `x2` can not be scalars at the same time.
368- If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
369- (which becomes the shape of the output).
373+ Second input array, also expected to have an integer or boolean data type.
370374out : {None, dpnp.ndarray, usm_ndarray}, optional
371375 Output array to populate.
372376 Array must have the correct shape and the expected data type.
@@ -397,6 +401,13 @@ def binary_repr(num, width=None):
397401:obj:`dpnp.binary_repr` : Return the binary representation of the input number
398402 as a string.
399403
404+ Notes
405+ -----
406+ At least one of `x1` or `x2` must be an array.
407+
408+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
409+ (which becomes the shape of the output).
410+
400411Examples
401412--------
402413>>> import dpnp as np
@@ -423,6 +434,7 @@ def binary_repr(num, width=None):
423434array(28)
424435>>> np.binary_repr(28)
425436'11100'
437+
426438"""
427439
428440bitwise_xor = DPNPBinaryFunc (
@@ -435,7 +447,7 @@ def binary_repr(num, width=None):
435447
436448
437449_INVERT_DOCSTRING = """
438- Inverts (flips) each bit for each element `x_i` of the input array `x`.
450+ Inverts (flips) each bit for each element :math: `x_i` of the input array `x`.
439451
440452Note that :obj:`dpnp.bitwise_invert` is an alias of :obj:`dpnp.invert`.
441453
@@ -444,7 +456,7 @@ def binary_repr(num, width=None):
444456Parameters
445457----------
446458x : {dpnp.ndarray, usm_ndarray}
447- Input array, expected to have integer or boolean data type.
459+ Input array, expected to have an integer or boolean data type.
448460out : {None, dpnp.ndarray, usm_ndarray}, optional
449461 Output array to populate.
450462 Array must have the correct shape and the expected data type.
@@ -514,9 +526,9 @@ def binary_repr(num, width=None):
514526bitwise_invert = invert # bitwise_invert is an alias for invert
515527
516528_LEFT_SHIFT_DOCSTRING = """
517- Shifts the bits of each element `x1_i` of the input array x1 to the left by
518- appending `x2_i` (i.e., the respective element in the input array `x2`) zeros to
519- the right of `x1_i`.
529+ Shifts the bits of each element :math: `x1_i` of the input array `x1` to the
530+ left by appending :math: `x2_i` (i.e., the respective element in the input array
531+ `x2`) zeros to the right of :math: `x1_i`.
520532
521533Note that :obj:`dpnp.bitwise_left_shift` is an alias of :obj:`dpnp.left_shift`.
522534
@@ -525,14 +537,10 @@ def binary_repr(num, width=None):
525537Parameters
526538----------
527539x1 : {dpnp.ndarray, usm_ndarray, scalar}
528- First input array, expected to have integer data type.
529- Both inputs `x1` and `x2` can not be scalars at the same time.
540+ First input array, expected to have an integer data type.
530541x2 : {dpnp.ndarray, usm_ndarray, scalar}
531- Second input array, also expected to have integer data type.
542+ Second input array, also expected to have an integer data type.
532543 Each element must be greater than or equal to ``0``.
533- Both inputs `x1` and `x2` can not be scalars at the same time.
534- If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
535- (which becomes the shape of the output).
536544out : {None, dpnp.ndarray, usm_ndarray}, optional
537545 Output array to populate.
538546 Array must have the correct shape and the expected data type.
@@ -560,6 +568,13 @@ def binary_repr(num, width=None):
560568:obj:`dpnp.binary_repr` : Return the binary representation of the input number
561569 as a string.
562570
571+ Notes
572+ -----
573+ At least one of `x1` or `x2` must be an array.
574+
575+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
576+ (which becomes the shape of the output).
577+
563578Examples
564579--------
565580>>> import dpnp as np
@@ -580,6 +595,7 @@ def binary_repr(num, width=None):
580595array(20)
581596>>> np.binary_repr(20)
582597'10100'
598+
583599"""
584600
585601left_shift = DPNPBinaryFunc (
@@ -594,8 +610,8 @@ def binary_repr(num, width=None):
594610
595611
596612_RIGHT_SHIFT_DOCSTRING = """
597- Shifts the bits of each element `x1_i` of the input array `x1` to the right
598- according to the respective element `x2_i` of the input array `x2`.
613+ Shifts the bits of each element :math: `x1_i` of the input array `x1` to the
614+ right according to the respective element :math: `x2_i` of the input array `x2`.
599615
600616Note that :obj:`dpnp.bitwise_right_shift` is an alias of :obj:`dpnp.right_shift`.
601617
@@ -604,14 +620,10 @@ def binary_repr(num, width=None):
604620Parameters
605621----------
606622x1 : {dpnp.ndarray, usm_ndarray, scalar}
607- First input array, expected to have integer data type.
608- Both inputs `x1` and `x2` can not be scalars at the same time.
623+ First input array, expected to have an integer data type.
609624x2 : {dpnp.ndarray, usm_ndarray, scalar}
610- Second input array, also expected to have integer data type.
625+ Second input array, also expected to have an integer data type.
611626 Each element must be greater than or equal to ``0``.
612- Both inputs `x1` and `x2` can not be scalars at the same time.
613- If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
614- (which becomes the shape of the output).
615627out : {None, dpnp.ndarray, usm_ndarray}, optional
616628 Output array to populate.
617629 Array must have the correct shape and the expected data type.
@@ -640,6 +652,13 @@ def binary_repr(num, width=None):
640652:obj:`dpnp.binary_repr` : Return the binary representation of the input number
641653 as a string.
642654
655+ Notes
656+ -----
657+ At least one of `x1` or `x2` must be an array.
658+
659+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
660+ (which becomes the shape of the output).
661+
643662Examples
644663--------
645664>>> import dpnp as np
@@ -660,6 +679,7 @@ def binary_repr(num, width=None):
660679array(5)
661680>>> np.binary_repr(5)
662681'101'
682+
663683"""
664684
665685right_shift = DPNPBinaryFunc (
0 commit comments