Hey Dag,

Thanks a bunch for your helpful answer.  This clears things up.

The most common use of this for me will be to do the same thing to
every element, regardless of whether or not it's contiguous.  In my
case, it's for a type of Monte Carlo simulation.  I still use the
array in python so it doesn't make sense to create a low-level c array
with malloc/free.

As a quick thought: I don't know how difficult it would be to
implement, but a mode for this kind of use would be nice.  Something
like mode="unordered" to emphasize the use case.  I guess you already
have that with the above code, but I've found the new buffer syntax so
nice that I don't particularly like going back to the direct method.

I would be quite happy to try and implement this, however, I'm in the
first year of my phd program so between classes and research time is
quite scarce.  I haven't worked on the cython code yet, though I've
long wanted to and plan to start contributing as soon as time permits.

--Hoyt

++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ [EMAIL PROTECTED]
++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to