[Numpy-discussion] extract elements of an array that are contained in another array?
Alan G Isaac
aisaac@american....
Thu Jun 4 07:23:43 CDT 2009
a[(a==b[:,None]).sum(axis=0,dtype=bool)]
hth,
Alan Isaac
More information about the Numpy-discussion
mailing list