xnn.common.data.neighborlist.small_cell#

xnn.common.data.neighborlist.small_cell(pos, cutoff, cell=None, pbc=None)[source]#

The edges of a cell whose pairs grid_pairs() finds without a grid (shape=None): orthorhombic, periodic on every axis, too small for cell_grid() but with every edge over cutoff, and the positions on a CUDA device with Triton.

Parameters:
  • pos (Tensor) – Cartesian positions of shape (N, 3).

  • cutoff (float) – Neighbor cutoff radius.

  • cell (Tensor, optional) – Lattice vectors as rows, of shape (3, 3).

  • pbc (Tensor, optional) – Boolean periodicity flags of shape (3,).

Returns:

The edges (3,) on the device, or None for another cell.

Return type:

Tensor or None