numpy/numpy — pull request #3005 by jphalip (2013-02-20 06:53:07+00:00)
Title: ENH: add `inverse` parameter to numpy.in1d().

This is equivalent to doing a 'not in' operation in a way that is faster than doing `np.invert(in1d(a, b))`.

If you think that adding a new `notin1d()` function would be better than adding this new `inverse` parameter to `in1d()`, let me know and I can update the patch (although that will probably require duplicating a lot of code from `in1d()`).

Thanks!