[SciPy-User] Speed-up simple function

Charles R Harris charlesr.harris at gmail.com
Mon Jan 10 09:32:34 EST 2011


On Mon, Jan 10, 2011 at 6:59 AM, <g.plantageneto at runbox.com> wrote:

>
> Hi everybody,
>
> I have some functions in python that perform simple computations (they
> compute the values of some long polynomials). Since I apply them to rather
> large arrays (10^5 elements) these functions slow down the script quite a
> bit. Is there a quick and simple way to speed up these functions?
>
>
Can you be more specific? If it's just one polynomial you can compute is all
in one go. If it is a different polynomial for each array element you
probably need to use Cython or some such. And what do you mean by "long"
polynomial?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110110/a498883e/attachment.html>


More information about the SciPy-User mailing list