Skip to content

Commit 356408f

Browse files
antonwolfyvtavana
andauthored
Apply suggestions from code review
Co-authored-by: Vahid Tavanashad <[email protected]>
1 parent 8b0ac06 commit 356408f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/dpnp_iface_bitwise.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,12 @@ def binary_repr(num, width=None):
187187
>>> x1 & x2
188188
array([ 2, 4, 16])
189189
190-
The number 13 is represented by ``00001101``. Likewise, 17 is represented by
190+
The number 13 is represented by ``00001101``. Likewise, 17 is represented by
191191
``00010001``. The bit-wise AND of 13 and 17 is therefore ``000000001``, or 1:
192192
193+
>>> np.bitwise_and(np.array(13), 17)
194+
array(1)
195+
193196
>>> np.bitwise_and(np.array(14), 13)
194197
array(12)
195198
>>> np.binary_repr(12)

0 commit comments

Comments
 (0)