- logical_xor(x1: array, x2: array, /) array ¶
Computes the logical XOR for each element
x1_iof the input array
x1with the respective element
x2_iof the input array
While this specification recommends that this function only accept input arrays having a boolean data type, specification-compliant array libraries may choose to accept input arrays having numeric data types. If non-boolean data types are supported, zeros must be considered the equivalent of
False, while non-zeros must be considered the equivalent of
x1 (array) – first input array. Should have a boolean data type.
x2 (array) – second input array. Must be compatible with
x1(see Broadcasting). Should have a boolean data type.
out (array) – an array containing the element-wise results. The returned array must have a data type of