[Numpy-discussion] Little vectorization help...

2008-12-10 Thread Andrea Gavana
Hi All, I am tryin to vectorize 3 nested for loops but I am not having much success. Here is the code I use: import numpy import numpy.ma as masked grid = numpy.zeros((nx, ny), dtype=numpy.float32) xOut = numpy.zeros((nx, ny), dtype=numpy.float32) yOut = numpy.zeros((nx, ny),

[Numpy-discussion] Little vectorization help...

2008-12-10 Thread Andrea Gavana
Hi All, I am tryin to vectorize 3 nested for loops but I am not having much success. Here is the code I use: import numpy import numpy.ma as masked grid = numpy.zeros((nx, ny), dtype=numpy.float32) xOut = numpy.zeros((nx, ny), dtype=numpy.float32) yOut = numpy.zeros((nx, ny),