On 07/21/2013 04:19 AM, pablobarhamal...@gmail.com wrote: > Thank's for all the replies! I've tried some of the imporovements you > suggested (using math.exp() and sum() or math.fsum()). > None of that made the code faster, because they are functions you are calling > lots of times, and function calling is quite time expensive (same as x**(1/2) > is faster than math.sqrt(x)). > > I'm going to try to convert tu numpy now (I have no idea how to do it at the > moment), thank's again to everyone.
Perhaps you'd have better results if you'd post a runnable piece of code. Otherwise we're just guessing since no one has the ability to actually run your code. -- http://mail.python.org/mailman/listinfo/python-list