iterator over a numarray?

Alex Hunsley lard at tardis.ed.ac.molar.uk
Sun Jul 4 18:42:34 EDT 2004


I'm looking for a way to iterate over all the items in a numarray.
Writing a few nested loops isn't going to cut it, because the numarray 
in question could be of any dimension...
I am aware of the revel function, but that appears to just flatten the 
numarray. What I need is an iterator that can give each value and the 
coordinates in the array of that item....

thanks
alex



More information about the Python-list mailing list