xnn.ffnn.models.reaxff_kernels.pair_candidates#
- xnn.ffnn.models.reaxff_kernels.pair_candidates(ptr, k, r, species, bt, flag, hb_cut)[source]#
A CPU stepper’s candidates from its half list by rows (
ptr, partnersk, distancesr): the bond candidates (within the per-species-pair distancebt(S, S), indexed by the partner’s species first; negative for no bond), and with the hydrogen-bond flagsflag(S,)(1 hydrogen, 2 acceptor) the pairs withinhb_cutof a hydrogen partner and an acceptor first atom, then those of the reverse; pair indices in increasing order (asnonzerogives them).