can this be made faster?

Daniel Mahler dmahler at gmail.com
Sun Oct 8 00:36:19 CDT 2006


Is there a 'loop free' way to do this in Numeric

for i in arange(l):
   a[b[i]]+=c[i]

where l == len(b) == len(c)

thanks
Daniel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Numpy-discussion mailing list