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 pairsexcl_index(2, E)of one structure (i < k), with the compact typescompact(n,)of one structure, the chargesq(N,)and the(T, T, 3)table of the form;twicethe kernels differentiable twice (classical_train);tinythe regularizer of the distances (0 for none).