Closed jd15489 closed 6 months ago
Numpy's Einsum function is used to replace a slow for loop in the get_disp function. This loop applies the periodic boundary conditions to each frame of the displacements. The Einsum used is equivalent but gives a >10x speedup.
Numpy's Einsum function is used to replace a slow for loop in the get_disp function. This loop applies the periodic boundary conditions to each frame of the displacements. The Einsum used is equivalent but gives a >10x speedup.