indexing with arrays of indexes and +=

David Huard david.huard at gmail.com
Tue Oct 24 16:46:54 EDT 2006


2006/10/24, Vincent Schut <schut at sarvision.nl>:
>
> It is clear to me that the numpy += operator in combination with the use
> of arrays of indexes, as is explained in the Tentative Numpy Tutorial
> (
> http://www.scipy.org/Tentative_NumPy_Tutorial#head-3f4d28139e045a442f78c5218c379af64c2c8c9e
> ),
> the limitation being that indexes that appear more than 1 time in the
> indexes-array will get incremented only once.
>
> Does anybody know a way to work around this?
>

I am using this to fill up a custom nd-histogram, and obviously each bin
> should be able to get incremented more than once. Looping over the
> entire array and incrementing each bin succesively takes waaay to long
> (these are pretty large arrays, like 4000x2000 items, or even larger)
>
>
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.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20061024/59cdc910/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list