[Numpy-discussion] equal() and complex

Konrad Hinsen hinsen at cnrs-orleans.fr
Fri Nov 30 12:17:04 CST 2001


Mike Romberg <romberg at fsl.noaa.gov> writes:

>   I'm wondering if there is some good reason why equal(), not_equal(),
> nonzero() and the like do not work with numeric arrays of tyep
> complex.  I can see why operators like less() and less_equal() do not
> work.  But the pure equality ones seem like they should work.  Or am I
> missing something :).

Before Python 2.1, comparison couldn't be implemented for equality
only.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------




More information about the Numpy-discussion mailing list