Oct. 11, 2011
1:35 p.m.
Any other ideas?
I'm not an expert at all, but I far as I understand if you cannot vectorize your problem, numpy is not the best tool to use if the speed matter a bit. Of course it's not a realistic example, but a simple loop computing a cosine is 3-4 time slower using numpy cos than python math cos (which is already slower than IDL).