[Numpy-discussion] Would a patch with a function for incrementing an array with advanced indexing be accepted?
jsalvati at u.washington.edu
Tue Jun 26 13:27:31 EDT 2012
Can you clarify why it would be super hard? I just reused the code for
advanced indexing (a modification of PyArray_SetMap). Am I missing
On Tue, Jun 26, 2012 at 9:57 AM, Travis Oliphant <travis at continuum.io>wrote:
> On Jun 26, 2012, at 11:46 AM, John Salvatier wrote:
> If you increment an array using advanced indexing and have repeated
> indexes, the array doesn't get repeatedly incremented,
> http://comments.gmane.org/gmane.comp.python.numeric.general/50291. I
> wrote a C function that does incrementing with repeated indexes correctly.
> The branch is here (https://github.com/jsalvatier/numpy 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.
> 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.
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion