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