[Numpy-discussion] Masking an array with another array

Pierre GM pgmdevlist at gmail.com
Wed Apr 22 17:49:51 EDT 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