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, partners k, distances r): the bond candidates (within the per-species-pair distance bt (S, S), indexed by the partner’s species first; negative for no bond), and with the hydrogen-bond flags flag (S,) (1 hydrogen, 2 acceptor) the pairs within hb_cut of a hydrogen partner and an acceptor first atom, then those of the reverse; pair indices in increasing order (as nonzero gives them).

Parameters:
Return type:

tuple