Re: [Numpy-discussion] numpy.complex* functions do not call the __complex__ method

2008-09-25 Thread jason-sage
Neal Becker wrote: > [EMAIL PROTECTED] wrote: > > >> In creating an array of type numpy.complex128, I'm having problems >> passing in Sage types that should be considered complex numbers since >> they implement the standard __complex__ method. However, numpy doesn't >> recognize that. Here's a

Re: [Numpy-discussion] numpy.complex* functions do not call the __complex__ method

2008-09-25 Thread Neal Becker
[EMAIL PROTECTED] wrote: > In creating an array of type numpy.complex128, I'm having problems > passing in Sage types that should be considered complex numbers since > they implement the standard __complex__ method. However, numpy doesn't > recognize that. Here's a minimal example: > I had tri

[Numpy-discussion] numpy.complex* functions do not call the __complex__ method

2008-09-24 Thread jason-sage
In creating an array of type numpy.complex128, I'm having problems passing in Sage types that should be considered complex numbers since they implement the standard __complex__ method. However, numpy doesn't recognize that. Here's a minimal example: In [1]: class MyNum: ...: def __comp