<div dir="ltr">Yes,<div>but I want to make a C extension to run faster a function from scipy.interpolate (interp1d)</div><div><br></div><div>It woulldn't change anything?</div><div><br></div><div>thanks</div><div><br></div>
<div>Gabriele</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-11 14:47 GMT-04:00 Alan Gauld <span dir="ltr"><<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 11/04/14 09:59, Peter Otten wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Gabriele Brambilla wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Anyway I would like to try to speed it up using C functions<br>
</blockquote></div>
...<div class=""><br>
posted looks like it has great potential for speed-up by replacing the inner<br>
loops with numpy array operations.<br>
</div></blockquote>
<br>
And in case its not obvious much(most?) of numPy consists<br>
of C functions. So by using NumPy you are usually using<br>
C code not native Python.<br>
<br>
That's what I alluded to in my first post on this thread:<br>
there are other libraries who have trod this route before<br>
and done the work for you.<br>
<br>
HTH<div class="im HOEnZb"><br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<a href="http://www.flickr.com/photos/alangauldphotos" target="_blank">http://www.flickr.com/photos/<u></u>alangauldphotos</a><br>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br></div>