This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).
Intersection returning repeated or unique elements common to both arrays.
Parameters: | ar1,ar2 : array_like
|
---|---|
Returns: | out : ndarray, shape(N,)
|
See also
Examples
>>> np.intersect1d([1,3,3],[3,1,1])
array([1, 1, 3, 3])