NumPy vs. iterative vs. ???

John J. Lee phrxy at csv.warwick.ac.uk
Wed Aug 30 15:50:54 EDT 2000


On Wed, 30 Aug 2000, Tim Lavoie wrote:
[...]
> I like the idea of NumPy, in that it does a lot for me and makes for more
> elegant code. However, I'm not sure how well it fits this application, since
> it prefers to apply each operation to every element in the array. Also,
> keeping several arrays (some complex-type) for the whole works is very
> RAM-hungry as well, at an element per pixel per array.
[...]

Is this really a problem when most (many, at least) machines have >=64 Mb
RAM now?  It sounds like it's a simple memory / speed trade-off, and you
should go for more speed.


John




More information about the Python-list mailing list