[Numpy-discussion] Different behaviour logical_and/and

Jochen Küpper jochen at jochen-kuepper.de
Wed Mar 20 19:06:03 CST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 20 Mar 2002 19:43:03 +0100 Aureli Soria Frisch wrote:

>>>> a
Aureli> array([0, 1, 0, 0, 1, 0, 1, 0, 0, 1])
>>>> b
Aureli> array([1, 1, 0, 1, 0, 0, 1, 1, 1, 0])


>>>> Numeric.logical_and(a,b)
Aureli> array([0, 1, 0, 0, 0, 0, 1, 0, 0, 0])

This look's correct...

>>>> a and b
Aureli> array([1, 1, 0, 1, 0, 0, 1, 1, 1, 0])

... and this suspiciously like b.


Greetings,
Jochen
- -- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: 44BCCD8E
        Sex, drugs and rock-n-roll
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt and GnuPG <http://www.gnupg.org/>

iD8DBQE8mU3jiJ/aUUS8zY4RAnxdAKCfrCyep4b7TKoF+c631cJiX53GmACgtmGo
jcS9gt6j1eJJj937JqoUm6M=
=TyKW
-----END PGP SIGNATURE-----





More information about the Numpy-discussion mailing list