speed of numpy.power()?

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Aug 25 10:20:50 EDT 2010


On 25/08/2010 14:59, Carlos Grohmann wrote:
> Hi all,
>
> I'd like to hear from you on the benefits of using numpy.power(x,y)
> over (x*x*x*x..)
>
> I looks to me that numpy.power takes more time to run.
>
> cheers
>
> Carlos
>

Measure it yourself using the timeit module.

Cheers.

Mark Lawrence.




More information about the Python-list mailing list