Compute the displacement vector between pairs of atoms in each frame of a trajectory.
| Parameters: | traj : Trajectory 
 atom_pairs : np.ndarray, shape[num_pairs, 2], dtype=int 
 periodic : bool, default=True 
 opt : bool, default=True 
 | 
|---|---|
| Returns: | displacements : np.ndarray, shape=[n_frames, n_pairs, 3], dtype=float32 
 |