numpy.bitwise_xor()

numpy.bitwise_xor

numpy.bitwise_xor(x1, x2[, out]) =

Compute the bit-wise XOR of two arrays element-wise.

Computes the bit-wise XOR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator ^.

Parameters:

x1, x2 : array_like

Only integer and boolean types are handled.

Returns:

out : array_like

Result.