## Re: [Numpy-discussion] equal() and complex

 Re: [Numpy-discussion] equal() and complex From: Konrad Hinsen - 2001-11-30 20:16:14 ```Mike Romberg 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@... 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 ------------------------------------------------------------------------------- ```

 [Numpy-discussion] equal() and complex From: Mike Romberg - 2001-11-30 19:29:55 ``` 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@...) ```
 Re: [Numpy-discussion] equal() and complex From: Konrad Hinsen - 2001-11-30 20:16:14 ```Mike Romberg 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@... 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 ------------------------------------------------------------------------------- ```