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 (atomi’s partnersdst[beg[i]:end[i]]forrows(beg, end)ofstepper_pairs(), one orthorhombic cell of edgeslengths) withincutoff, 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, andH; written into the firstHcolumns of the buffersout(3, C),(2, C, 3)where they fit (idxand the shifts are then those buffers).