Optimizing Python distance calculation while accounting for periodic boundary conditions

前端 未结 4 2122
攒了一身酷
攒了一身酷 2020-12-30 07:24

I have written a Python script to calculate the distance between two points in 3D space while accounting for periodic boundary conditions. The problem is that I need to do t

4条回答
  •  余生分开走
    2020-12-30 07:55

    Have a look at Ian Ozsvalds high performance python tutorial. It contains lots of suggestions on where you can go next.

    Including:

    • vectorization
    • cython
    • pypy
    • numexpr
    • pycuda
    • multiprocesing
    • parallel python

提交回复
热议问题