[Numpy-discussion] boolean arrays

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Nov 26 07:20:40 CST 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