apply_symmetries
apply_symmetries(coords, symmetry_elements: 'list[np.ndarray]', labels=None, tol=0.1):
LLM Docstring
Grow a set of coordinates by repeatedly applying symmetry operations, keeping only the newly generated (non-duplicate) points.
For each operation the transformed points are compared against the current set
(within tolerance tol) and only distinct new points are appended; optional
labels are propagated alongside.
coords:np.ndarraythe seed coordinates
symmetry_elements:list[np.ndarray]the symmetry operation matrices to apply
labels:Iterable | bool | Noneoptional per-point labels to carry along
tol:floatduplicate-detection tolerance
:returns:np.ndarray | tuplethe expanded coordinates (and labels if provided)