Re: [Numpy-discussion] boolean operations on boolean arrays

2014-04-12 Thread Alexander Belopolsky
On Sat, Apr 12, 2014 at 10:02 AM, Alan G Isaac wrote: > Are there any considerations besides convenience in choosing > between: > > a&b a*b logical_and(a,b) > a|b a+b logical_or(a,b) > ~aTrue-a logical_not(a) > Boolean "-" is being deprecated:

Re: [Numpy-discussion] boolean operations on boolean arrays

2014-04-12 Thread Charles R Harris
On Sat, Apr 12, 2014 at 8:02 AM, Alan G Isaac wrote: > This is a very basic question. > Suppose `a` and `b` are boolean arrays with the same shape. > Are there any considerations besides convenience in choosing > between: > > a&b a*b logical_and(a,b) > a|b a+b

[Numpy-discussion] boolean operations on boolean arrays

2014-04-12 Thread Alan G Isaac
This is a very basic question. Suppose `a` and `b` are boolean arrays with the same shape. Are there any considerations besides convenience in choosing between: a&b a*b logical_and(a,b) a|b a+b logical_or(a,b) ~aTrue-a logical_not(a) I somewhat