Right, that makes sense. Thanks.<div><br><div class="gmail_quote">On Tue, Jun 26, 2012 at 11:34 AM, Frédéric Bastien <span dir="ltr"><<a href="mailto:nouiz@nouiz.org" target="_blank">nouiz@nouiz.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I think he was referring that making NUMPY_ARRAY_OBJECT[...] syntax<br>
support the operation that you said is hard. But having a separate<br>
function do it is less complicated as you said.<br>
<br>
Fred<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jun 26, 2012 at 1:27 PM, John Salvatier<br>
<<a href="mailto:jsalvati@u.washington.edu">jsalvati@u.washington.edu</a>> wrote:<br>
> Can you clarify why it would be super hard? I just reused the code for<br>
> advanced indexing (a modification of PyArray_SetMap). Am I missing something<br>
> crucial?<br>
><br>
><br>
><br>
> On Tue, Jun 26, 2012 at 9:57 AM, Travis Oliphant <<a href="mailto:travis@continuum.io">travis@continuum.io</a>><br>
> wrote:<br>
>><br>
>><br>
>> On Jun 26, 2012, at 11:46 AM, John Salvatier wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> If you increment an array using advanced indexing and have repeated<br>
>> indexes, the array doesn't get repeatedly<br>
>> incremented, <a href="http://comments.gmane.org/gmane.comp.python.numeric.general/50291" target="_blank">http://comments.gmane.org/gmane.comp.python.numeric.general/50291</a>.<br>
>> I wrote a C function that does incrementing with repeated indexes correctly.<br>
>> The branch is here (<a href="https://github.com/jsalvatier/numpy" target="_blank">https://github.com/jsalvatier/numpy</a> see the last two<br>
>> commits). Would a patch with a cleaned up version of a function like this be<br>
>> accepted into numpy? I'm not experienced writing numpy C code so I'm sure it<br>
>> still needs improvement.<br>
>><br>
>><br>
>> This is great.   It is an often-requested feature.   It's *very difficult*<br>
>> to do without changing fundamentally what NumPy is.  But, yes this would be<br>
>> a great pull request.<br>
>><br>
>> Thanks,<br>
>><br>
>> -Travis<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> NumPy-Discussion mailing list<br>
>> <a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
>> <a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
><br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>