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 :). Thanks, Mike Romberg (romberg@fsl.noaa.gov)
Mike Romberg <romberg@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@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 -------------------------------------------------------------------------------
participants (2)
-
Konrad Hinsen
-
Mike Romberg