full_to_half_list¶
- torch_sim.models.pair_potential.full_to_half_list(mapping, system_mapping, shifts_idx)[source]¶
Reduce a full neighbor list to a half list.
Keeps each unordered pair exactly once. For
i != jpairs, the copy withi < jis kept. For self-image pairs (i == j, non-zero periodic shift), the copy whose first non-zero shift component is positive is kept.- Parameters:
- Returns:
(mapping, system_mapping, shifts_idx) with duplicates removed.
- Return type: