bitwise_xor¶
- bitwise_xor(x1: array | int | bool, x2: array | int | bool, /) array ¶
Computes the bitwise XOR of the underlying binary representation of each element
x1_i
of the input arrayx1
with the respective elementx2_i
of the input arrayx2
.- Parameters:
x1 (Union[array, int, bool]) – first input array. Should have an integer or boolean data type.
x2 (Union[array, int, bool]) – second input array. Must be compatible with
x1
(see Broadcasting). Should have an integer or boolean data type.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a data type determined by Type Promotion Rules.
Notes
At least one of
x1
orx2
must be an array.