Set exclusive-or of 1D arrays with unique elements.
Use unique1d() to generate arrays with only unique elements to use as inputs to this function.
ar1 : array_like
Input array.
ar2 : array_like
xor : ndarray
The values that are only in one, but not both, of the input arrays.
See also
numpy.setmember1d
numpy.union1d