xnn.ffnn.models.amoeba_kernels.mutual_field#

xnn.ffnn.models.amoeba_kernels.mutual_field(mu, r_vec, du, i_, k_, N, count=None, guard=None, rows=None)[source]#

The real-space field (N, 3) of dipoles mu (N, 3) through the mutual ladders du (M, 2) of the pairs (mutual_field_real of the eager path), summed per atom over the compressed rows rows of pair_rows() (built here when not given); count as in pairs_forward(). With the scalars guard of a conjugate-gradient iteration the kernel does nothing once the solve has converged, and the field is left unset (no update reads it). Two sets of dipoles stacked (2 N, 3) give their two fields stacked, from one launch.

Parameters:
Return type:

Tensor