Re: [Numpy-discussion] Numpy-discussion Digest, Vol 22, Issue 33

2008-07-09 Thread Keith Goodman
On Wed, Jul 9, 2008 at 12:43 PM, Catherine Moroney <[EMAIL PROTECTED]> wrote: >> >> > 2008/7/9 Catherine Moroney <[EMAIL PROTECTED]>: >> > >> >> I have a question about performing element-wise logical operations >> >> on numpy arrays. >> >> >> >> If "a", "b" and "c" are numpy arrays of the same siz

Re: [Numpy-discussion] Numpy-discussion Digest, Vol 22, Issue 33

2008-07-09 Thread Catherine Moroney
> > > 2008/7/9 Catherine Moroney <[EMAIL PROTECTED]>: > > > >> I have a question about performing element-wise logical operations > >> on numpy arrays. > >> > >> If "a", "b" and "c" are numpy arrays of the same size, does the > >> following syntax work? > >> > >> mask = (a > 1.0) & ((b > 3.0) | (c