[Numpy-discussion] boolean operations on boolean arrays
ndarray at mac.com
Sat Apr 12 12:58:34 EDT 2014
On Sat, Apr 12, 2014 at 10:02 AM, Alan G Isaac <alan.isaac at gmail.com> wrote:
> Are there any considerations besides convenience in choosing
> a&b a*b logical_and(a,b)
> a|b a+b logical_or(a,b)
> ~a True-a logical_not(a)
Boolean "-" is being deprecated:
The choice between &| and *+ is best dictated by what is more natural in
your problem domain and how your functions should treat non-boolean types.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion