can this be made faster?

Bill Baxter wbaxter at
Sun Oct 8 00:48:59 CDT 2006

Yes, that'd be
   a[b] += c

On 10/8/06, Daniel Mahler <dmahler at> wrote:
> 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's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash

More information about the Numpy-discussion mailing list