2006/10/24, Vincent Schut <<a href="mailto:schut@sarvision.nl">schut@sarvision.nl</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It is clear to me that the numpy += operator in combination with the use<br>of arrays of indexes, as is explained in the Tentative Numpy Tutorial<br>(<a href="http://www.scipy.org/Tentative_NumPy_Tutorial#head-3f4d28139e045a442f78c5218c379af64c2c8c9e">
http://www.scipy.org/Tentative_NumPy_Tutorial#head-3f4d28139e045a442f78c5218c379af64c2c8c9e</a>),<br>the limitation being that indexes that appear more than 1 time in the<br>indexes-array will get incremented only once.<br>
<br>Does anybody know a way to work around this? <br></blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am using this to fill up a custom nd-histogram, and obviously each bin
<br>should be able to get incremented more than once. Looping over the<br>entire array and incrementing each bin succesively takes waaay to long<br>(these are pretty large arrays, like 4000x2000 items, or even larger)<br>
<br></blockquote></div><br>I don't know the answer to the first question, but I'd like to ask if you tried histogramdd ? If its lacking some features, i'd be willing to implement them. <br><br>David<br>