<div dir="ltr"><div><div>Hi,<br><br>this is used in Theano. What is the consequence of not doing this? There is people that use it, the question is how many.<br></div>Is there a way to detect witch version need to be used?<br>

<br></div>thanks<br><div><br>Fred<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 11, 2013 at 11:41 AM, Sebastian Berg <span dir="ltr"><<a href="mailto:sebastian@sipsolutions.net" target="_blank">sebastian@sipsolutions.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
(this is only interesting if you know what MapIter and actually use it)<br>
<br>
In case anyone already uses the newly exposed mapiter (it was never<br>
released yet). There is a tiny change, which only affects indexes that<br>
start with np.newaxis but otherwise just simplifies a tiny bit. The old<br>
block for swapping axes should be changed like this:<br>
<br>
     if ((mit->subspace != NULL) && (mit->consec)) {<br>
-        if (mit->iteraxes[0] > 0) {<br>
-            PyArray_MapIterSwapAxes(mit, (PyArrayObject **)&arr, 0);<br>
-            if (arr == NULL) {<br>
-                return -1;<br>
-            }<br>
+        PyArray_MapIterSwapAxes(mit, (PyArrayObject **)&arr, 0);<br>
+        if (arr == NULL) {<br>
+            return -1;<br>
         }<br>
     }<br>
<br>
Regards,<br>
<br>
Sebastian<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>
</blockquote></div><br></div>