This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
Set routines
Making proper sets
unique1d (ar1[, return_index, return_inverse]) |
Find the unique elements of an array. |
Boolean operations
intersect1d (ar1, ar2) |
Intersection returning repeated or unique elements common to both arrays. |
intersect1d_nu (ar1, ar2) |
Intersection returning unique elements common to both arrays. |
setdiff1d (ar1, ar2) |
Set difference of 1D arrays with unique elements. |
setmember1d (ar1, ar2) |
Return a boolean array set True where first element is in second array. |
setxor1d (ar1, ar2) |
Set exclusive-or of 1D arrays with unique elements. |
union1d (ar1, ar2) |
Union of 1D arrays with unique elements. |