New answers tagged physics
2
votes
Means square displacement (MSD)
You care mostly about performance, so I will review the inner loops only and ignore everything else, including style. This is your code again:
...
1
vote
Means square displacement (MSD)
Document, especially procedures (function or method) using docstrings.
What is the significance of 105 in the reshapes, and why a second reshape of ...
Top 50 recent answers are included
Related Tags
physics × 149python × 46
simulation × 40
performance × 36
c++ × 35
javascript × 21
java × 18
beginner × 18
numpy × 16
animation × 12
python-3.x × 11
game × 11
object-oriented × 10
mathematics × 8
c# × 7
algorithm × 6
calculator × 6
coordinate-system × 6
unity3d × 5
numerical-methods × 5
canvas × 5
collision × 5
pygame × 4
sfml × 4
scipy × 4