def shift(R, dR, t=None, **unused_kwargs): _check_time_dependence(t) check_kwargs_empty(unused_kwargs) return periodic_shift(f32(1.0), R, transform(_small_inverse(T(t)), dR))
def shift(R, dR, t=None, **unused_kwargs): _check_time_dependence(t) check_kwargs_empty(unused_kwargs) return R + transform(_small_inverse(T(t)), dR)
def displacement(Ra, Rb, t=None, **unused_kwargs): _check_time_dependence(t) check_kwargs_empty(unused_kwargs) dR = periodic_displacement(f32(1.0), pairwise_displacement(Ra, Rb)) return transform(T(t), dR)