[Numpy-discussion] Re: indexing problem

Tim Hochberg tim.hochberg at cox.net
Mon Feb 13 14:52:01 EST 2006


Travis Oliphant wrote:

> Tim Hochberg wrote:
>
>>
>> I've been trying to look into the problem described below, but I just 
>> can't find where complex multiplication is being done (all the other 
>> multiplication, but not complex). Could someone with a grasp of the 
>> innards of numpy please point me in the right direction?
>
>
> Look in the build directory for __umath_generated.c.  In there you 
> will see that multiplication for complex numbers is done using 
> PyUFunc_FF_F and friends (i.e. using a generic interface for wrapping 
> a "scalar" function).   The scalar function wrapped into a ufunc 
> vectorized function is given in multiply_data.  In that file you 
> should see it present as nc_prodf, nc_prod, nc_prodl.
>
> nc_prod and friends are implemented in umathmodule.c.src


Thanks Travis, it would have taken me a while to track them down. As it 
turns out I was going off on the wrong track as I'll report in my next 
message.

-tim





More information about the NumPy-Discussion mailing list