numpy.ma.in1d#
- ma.in1d(ar1, ar2, assume_unique=False, invert=False)[source]#
Test whether each element of an array is also present in a second array.
The output is always a masked array. See
numpy.in1dfor more details.We recommend using
isininstead ofin1dfor new code.See also
isinVersion of this function that preserves the shape of ar1.
numpy.in1dEquivalent function for ndarrays.
Notes
New in version 1.4.0.