bitwise_xor#
- rbc.stdlib.elementwise_functions.bitwise_xor(x1, x2)#
Computes the bitwise XOR of the underlying binary representation of each element x1_i of the input array x1 with the respective element x2_i of the input array x2.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('int64(int64, int64)') ... def array_api_bitwise_xor(x1, x2): ... return array_api.bitwise_xor(x1, x2) >>> array_api_bitwise_xor(13, 17).execute() 28 >>> np.binary_repr(28) '11100'