Set routines

Set routines

Making proper sets

unique(ar[, return_index, return_inverse, ...]) Find the unique elements of an array.

Boolean operations

in1d(ar1, ar2[, assume_unique, invert]) Test whether each element of a 1-D array is also present in a second array.
intersect1d(ar1, ar2[, assume_unique]) Find the intersection of two arrays.
setdiff1d(ar1, ar2[, assume_unique]) Find the set difference of two arrays.
setxor1d(ar1, ar2[, assume_unique]) Find the set exclusive-or of two arrays.
union1d(ar1, ar2) Find the union of two arrays.

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/routines.set.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部