[Numpy-discussion] Masking an array with another array

Pierre GM pgmdevlist@gmail....
Wed Apr 22 16:49:51 CDT 2009


On Apr 22, 2009, at 5:21 PM, Gökhan SEVER wrote:

> Hello,
>
> Could you please give me some hints about how to mask an array using  
> another arrays like in the following example.

What about that ?
numpy.logical_or.reduce([a==i for i in b])




More information about the Numpy-discussion mailing list