deepmd.jax.utils.neighbor_stat#
Classes#
Neighbor statistics using JAX. |
Module Contents#
- class deepmd.jax.utils.neighbor_stat.NeighborStat(ntypes: int, rcut: float, mixed_type: bool = False)[source]#
Bases:
deepmd.utils.neighbor_stat.NeighborStatNeighbor statistics using JAX.
- Parameters:
- iterator(data: deepmd.utils.data_system.DeepmdDataSystem) collections.abc.Iterator[tuple[numpy.ndarray, float, str]][source]#
Iterator method for producing neighbor statistics data.
- Yields:
np.ndarrayThe maximal number of neighbors
floatThe squared minimal distance between two atoms
strThe directory of the data system
- _execute(coord: numpy.ndarray, atype: numpy.ndarray, cell: numpy.ndarray | None)[source]#
Execute the operation.
- Parameters:
- coord
The coordinates of atoms.
- atype
The atom types.
- cell
The cell.