[Numpy-discussion] where does numpy get its pow function?

Chris Colbert sccolbert at gmail.com
Tue Sep 29 14:14:57 EDT 2009


my powers are typically doubles

I traced the problem down to the pow function in math.h just being slow...

Thanks!

On Tue, Sep 29, 2009 at 7:53 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
>
>
> On Tue, Sep 29, 2009 at 11:01 AM, Chris Colbert <sccolbert at gmail.com> wrote:
>>
>> are there any particular optimization flags issued when building numpy
>> aside from the following?
>>
>>  -fwrapv -O2
>>
>
> Numpy optimizes small integer powers  using multiplication. What sort of
> numbers are you looking at?
>
> Chuck
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>



More information about the NumPy-Discussion mailing list