[Numpy-discussion] boolean arrays
renesd at gmail.com
Fri Nov 27 02:20:59 EST 2009
On Thu, Nov 26, 2009 at 7:35 PM, Nils Wagner
<nwagner at iam.uni-stuttgart.de> wrote:
> Sorry, I mixed up '+' and '&'
>>>> a = array(([True,True],[True,True]))
>>>> b = array(([False,False],[False,False]))
>>>> a & b
> array([[False, False],
> [False, False]], dtype=bool)
this is a classical problem with + (sometimes pronounced 'and') and &
(also pronounced 'and'). Happens to all of us sometimes.
More information about the NumPy-Discussion