Thanks very much everyone, this has been very helpful. I have been doing some timing of my own and the order of magnitude difference that numpy provides wins. I'm learning python as I go so some of my questions come from a lack of language skillls, but it is good to get to know the numpy dialect too.
On Mon, Sep 15, 2008 at 6:48 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > SimonPalmer wrote: > > what is the overhead associated with importing a new module (whichever > > includes izip)? > > I am wondering whether it is actually more efficient for me to put my > > aesthetics aside and stick with my ugly but efficient loop > > If you do not want to use izip, you can still avoid array > creation by using ``dot``:: > > max_idx = min(len(A), len(B)) > np.dot(A[:max_idx], B[:max_idx]) > > Cheers, > Alan Isaac > > _______________________________________________ > Numpy-discussion mailing list > [email protected] > http://projects.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
