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 vectors r (M, 3) (no gradient) and select_pairs() of the pairs within the cutoff (r * r summed below cutoff_sq, a tensor of one entry in the precision of r) and valid (valid > 0): two kernels and one scan.

Parameters:
Return type:

tuple