[Numpy-discussion] Would a patch with a function for incrementing an array with advanced indexing be accepted?
Tue Jun 26 13:48:13 CDT 2012
Right, that makes sense. Thanks.
On Tue, Jun 26, 2012 at 11:34 AM, Frédéric Bastien <firstname.lastname@example.org> wrote:
> I think he was referring that making NUMPY_ARRAY_OBJECT[...] syntax
> support the operation that you said is hard. But having a separate
> function do it is less complicated as you said.
> On Tue, Jun 26, 2012 at 1:27 PM, John Salvatier
> <email@example.com> wrote:
> > 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
> > crucial?
> > On Tue, Jun 26, 2012 at 9:57 AM, Travis Oliphant <firstname.lastname@example.org>
> > wrote:
> >> On Jun 26, 2012, at 11:46 AM, John Salvatier wrote:
> >> Hello,
> >> If you increment an array using advanced indexing and have repeated
> >> indexes, the array doesn't get repeatedly
> >> incremented,
> >> I wrote a C function that does incrementing with repeated indexes
> >> The branch is here (https://github.com/jsalvatier/numpy see the last
> >> 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
> >> to do without changing fundamentally what NumPy is. But, yes this
> would be
> >> a great pull request.
> >> Thanks,
> >> -Travis
> >> _______________________________________________
> >> NumPy-Discussion mailing list
> >> NumPy-Discussion@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion