espaloma.mm.geometry.dihedral

espaloma.mm.geometry.dihedral(x0: Tensor, x1: Tensor, x2: Tensor, x3: Tensor) Tensor[source]

Dihedral between four points.

Reference

Closely follows implementation in Yutong Zhao’s timemachine:

https://github.com/proteneer/timemachine/blob/1a0ab45e605dc1e28c44ea90f38cb0dedce5c4db/timemachine/potentials/bonded.py#L152-L199