New answers tagged


TLDR: Vectorize and eliminate redundant calculations. Rewriting most of your code gave a 400-500x speed up Also, use functions and name your variables in ways that people can read Long version: Legibility The code in ParticleFlow, ExplicitEuler, and Integrate was well organize but slow and hard to follow. The variable names were cryptic. They get repeated ...

Top 50 recent answers are included