On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodman <span dir="ltr"><<a href="mailto:kwgoodman@gmail.com">kwgoodman@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Dec 1, 2010 at 5:53 PM, David <<a href="mailto:david@silveregg.co.jp">david@silveregg.co.jp</a>> wrote:<br>
<br>
> On 12/02/2010 04:47 AM, Keith Goodman wrote:<br>
>> It's hard to write Cython code that can handle all dtypes and<br>
>> arbitrary number of dimensions. The former is typically dealt with<br>
>> using templates, but what do people do about the latter?<br>
><br>
> The only way that I know to do that systematically is iterator. There is<br>
> a relatively simple example in scipy/signal (lfilter.c.src).<br>
><br>
> I wonder if it would be possible to add better support for numpy<br>
> iterators in cython...<br>
<br>
</div>Thanks for the tip. I'm starting to think that for now I should just<br>
template both dtype and ndim.<br>
<div><div></div><div class="h5">_______________________________________________<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>I enthusiastically support better iterator support for cython