[Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Dr. Phillip M. Feldman
Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful and flexible than the Matlab base, and that it generally takes less Python code to get the same job done. There is, however, at least one thing that is

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 15:01, Dr. Phillip M. Feldmanpfeld...@verizon.net wrote: Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful and flexible than the Matlab base, and that it generally takes less

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 4:04 PM, Robert Kernrobert.k...@gmail.com wrote: On Wed, Aug 5, 2009 at 15:01, Dr. Phillip M. Feldmanpfeld...@verizon.net wrote: Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Sturla Molden
If x and y are numpy arrays of bools, I'd like to be able to create expressions like the following: not x (to invert each element of x) x and y x or y x xor y (not x) or y The usual array broadcasting rules should apply. Is there any chance of getting something like this into NumPy?

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 16:02, Sturla Moldenstu...@molden.no wrote:  If x and y are numpy arrays of bools, I'd like to be able to create expressions like the following: not x (to invert each element of x) x and y x or y x xor y (not x) or y The usual array broadcasting rules should