xnn.ffnn.models.amoeba_kernels.amoeba_pairs_backward#

xnn.ffnn.models.amoeba_kernels.amoeba_pairs_backward(i_, k_, r_vec, scales, keep, per, q, d, Q, params, offsets, scalars, polar, modes, g_node, g_field_d=None, g_field_p=None, g_du=None, count=None, select=None, tangents=None)[source]#

Launch the AMOEBA backward kernel: the gradients of sum(g_node * e_node) + sum(g_field_d * field_d) + sum(g_field_p * field_p) + sum(g_du * du) with respect to the pair vectors (M, 3), the charges (N,), dipoles (N, 3), quadrupoles (N, 3, 3) and site offsets (N, 3). The inputs are those of amoeba_pairs_forward() (with tangents, the gradients’ derivatives along them as <key>_t); a missing incoming gradient counts as zero.

Parameters:
Return type:

dict