xnn.ffnn.models.classical_fast.fast_nonbonded#

xnn.ffnn.models.classical_fast.fast_nonbonded(data, n, B, compact, q, table, ke, excl_index, cutoff, width, form, module=None, twice=False, tiny=1e-12)[source]#

The per-atom van der Waals and Coulomb energies (N,) each, in the model’s dtype, from the pair kernel on the graph’s directed neighbor list (each pair once, i < k), without the excluded pairs excl_index (2, E) of one structure (i < k), with the compact types compact (n,) of one structure, the charges q (N,) and the (T, T, 3) table of the form; twice the kernels differentiable twice (classical_train); tiny the regularizer of the distances (0 for none).

Parameters:
Return type:

tuple