Find the intersection of two arrays.
Return the sorted, unique values that are in both of the input arrays.
Parameters : | ar1, ar2 : array_like
assume_unique : bool
|
---|---|
Returns : | out : ndarray
|
See also
Examples
>>> np.intersect1d([1, 3, 4, 3], [3, 1, 2, 1])
array([1, 3])