xnn.ffnn.models.classical_cpu.hbond_triplets#

xnn.ffnn.models.classical_cpu.hbond_triplets(rows, dst, img, pos, lengths, hyd, acceptor, cutoff, out=None)[source]#

The hydrogen-bond triplets (donor, H, acceptor) (3, H) of a stepper’s list (atom i’s partners dst[beg[i]:end[i]] for rows (beg, end) of stepper_pairs(), one orthorhombic cell of edges lengths) within cutoff, once per hydrogen of the donor (hyd (N, R), -1 padded), the pairs with the donor first then those with the acceptor first, and the image shifts (2, H, 3) of their donor-acceptor and hydrogen-donor vectors, and H; written into the first H columns of the buffers out (3, C), (2, C, 3) where they fit (idx and the shifts are then those buffers).

Parameters:
Return type:

tuple