- cupy.setxor1d(ar1, ar2, assume_unique=False)[source]#
Find the set exclusive-or of two arrays.
ar1 (cupy.ndarray) – Input arrays. They are flattend if they are not already 1-D.
ar2 (cupy.ndarray) – Input arrays. They are flattend if they are not already 1-D.
assume_unique (bool) – By default, False, i.e. input arrays are not unique. If True, input arrays are assumed to be unique. This can speed up the calculation.
setxor1d – Return the sorted, unique values that are in only one (not both) of the input arrays.
- Return type