Hello everyone,

I am trying to sum points onto a 3d grid using "put" with a list of 
computed array indices. I am looking for a version of "put" which 
increments, e.g. replace:

    for i in ind: a.flat[i] = v[i]

with "+=" to increment. Other operations might also be useful?

I tried using "take", then incrementing the result, but still have 
problems if the indices are not unique.

Thanks for any suggestions,

Jon
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to