Re: [Numpy-discussion] element-wise logical operations on numpy arrays

2008-07-09 Thread Anne Archibald
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 > 10.0)) > > It seems to be

Re: [Numpy-discussion] element-wise logical operations on numpy arrays

2008-07-09 Thread Charles R Harris
On Wed, Jul 9, 2008 at 10:21 AM, Catherine Moroney < [EMAIL PROTECTED]> wrote: > Hello, > > 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) & ((

[Numpy-discussion] element-wise logical operations on numpy arrays

2008-07-09 Thread Catherine Moroney
Hello, 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 > 10.0)) It seems to be performing correctly, but the documentation that I've