numpy.setxor1d()
numpy.setxor1d
-
numpy.setxor1d(ar1, ar2, assume_unique=False)
[source] -
Find the set exclusive-or of two arrays.
Return the sorted, unique values that are in only one (not both) of the input arrays.
Parameters: ar1, ar2 : array_like
Input arrays.
assume_unique : bool
If True, the input arrays are both assumed to be unique, which can speed up the calculation. Default is False.
登录查看完整内容