xnn.ffnn.models.geometry.pair_image_shifts#
- xnn.ffnn.models.geometry.pair_image_shifts(data, a, b)[source]#
The integer image shifts
(M, 3)thatpair_vectors()adds topos[b] - pos[a], orNonefor a batch without cells.- Parameters:
data (AtomicGraph) – The batched graph.
a (Tensor) – Atom indices of shape
(M,).b (Tensor) – Atom indices of shape
(M,).
- Returns:
Shifts in lattice vectors, detached.
- Return type:
Tensor or None