Skip to content

Commit ac515af

Browse files
committed
Add in-place callbacks for bit-wise operators
1 parent 369f51a commit ac515af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpnp/dpnp_iface_bitwise.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def binary_repr(num, width=None):
206206
ti._bitwise_and_result_type,
207207
ti._bitwise_and,
208208
_BITWISE_AND_DOCSTRING,
209+
binary_inplace_fn=ti._bitwise_and_inplace,
209210
)
210211

211212

@@ -281,6 +282,7 @@ def binary_repr(num, width=None):
281282
ti._bitwise_or_result_type,
282283
ti._bitwise_or,
283284
_BITWISE_OR_DOCSTRING,
285+
binary_inplace_fn=ti._bitwise_or_inplace,
284286
)
285287

286288

@@ -360,6 +362,7 @@ def binary_repr(num, width=None):
360362
ti._bitwise_xor_result_type,
361363
ti._bitwise_xor,
362364
_BITWISE_XOR_DOCSTRING,
365+
binary_inplace_fn=ti._bitwise_xor_inplace,
363366
)
364367

365368

@@ -510,6 +513,7 @@ def binary_repr(num, width=None):
510513
ti._bitwise_left_shift_result_type,
511514
ti._bitwise_left_shift,
512515
_LEFT_SHIFT_DOCSTRING,
516+
binary_inplace_fn=ti._bitwise_left_shift_inplace,
513517
)
514518

515519
bitwise_left_shift = left_shift # bitwise_left_shift is an alias for left_shift
@@ -585,6 +589,7 @@ def binary_repr(num, width=None):
585589
ti._bitwise_right_shift_result_type,
586590
ti._bitwise_right_shift,
587591
_RIGHT_SHIFT_DOCSTRING,
592+
binary_inplace_fn=ti._bitwise_right_shift_inplace,
588593
)
589594

590595
# bitwise_right_shift is an alias for right_shift

0 commit comments

Comments
 (0)