Loopless syntax for 2d in NumPy (or Numarray)
Fernando Perez
fperez528 at yahoo.com
Wed Oct 22 12:54:07 EDT 2003
2mc wrote:
> How would this be done without loops? Or, at least without looping
> through every row.
For those cases when you have no option but looping, the easiest approach out
there is probably weave.inline(). Sorry I can't give you too many more
details right now, but if you go here:
http://windom.colorado.edu/~fperez/python/python-c/
you should be able to get started quickly. For weave itself, go to
http://scipy.org/
weave.inline() is one amazing piece of work.
Cheers,
f
More information about the Python-list
mailing list