xnn.ffnn.models.amoeba_kernels.select_pairs_within#
- xnn.ffnn.models.amoeba_kernels.select_pairs_within(r, cutoff_sq, valid=None)[source]#
The distances
(M,)of the pair vectorsr(M, 3)(no gradient) andselect_pairs()of the pairs within the cutoff (r * rsummed belowcutoff_sq, a tensor of one entry in the precision ofr) and valid (valid > 0): two kernels and one scan.