<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 26, 2012, at 11:46 AM, John Salvatier wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello, </div><div><br></div><div>If you increment an array using advanced indexing and have repeated indexes, the array doesn't get repeatedly incremented, <a href="http://comments.gmane.org/gmane.comp.python.numeric.general/50291">http://comments.gmane.org/gmane.comp.python.numeric.general/50291</a>. I wrote a C function that does incrementing with repeated indexes correctly. The branch is here (<a href="https://github.com/jsalvatier/numpy">https://github.com/jsalvatier/numpy</a> see the last two commits). Would a patch with a cleaned up version of a function like this be accepted into numpy? I'm not experienced writing numpy C code so I'm sure it still needs improvement.</div></blockquote><div><br></div><div>This is great.   It is an often-requested feature.   It's *very difficult* to do without changing fundamentally what NumPy is.  But, yes this would be a great pull request.  </div><div><br></div><div>Thanks,</div><div><br></div><div>-Travis</div><div><br></div></div><br></body></html>