> 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). _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion