numpy/numpy — pull request #2800 by seberg (2012-12-08 13:15:21+00:00)
Title: BUG: Fix regression for in1d with non-array input

There was a regression introduced by the speed improvement in commit 6441c2a. This fixes it, and generally ravels the arrays for np.in1d. However it can be argued that at least the first array should
not be ravelled in the future.

Fixes "Issue gh-2755"

Since this seems to have been forgotten and it might be an annoying regression... @certik this should probably be in 1.7. to avoid a regression...

I used `np.asarray` here. In most places in `arraysetops` there is a call to `np.asanyarray` which probably should be replaced as well, since at least for matrices it fails? (Maybe `__array_wrap__` could be used, I am not sure if thats useful or not)