[Numpy-discussion] boolean arrays

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Nov 26 08:20:40 EST 2009


Hi all,

is the following behaviour correct

>>> a = array(([True,True],[True,True]))
>>> b = array(([False,False],[False,False]))

>>> a+b
array([[ True,  True],
            [ True,  True]])

I have expected False.

Nils



More information about the NumPy-Discussion mailing list