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 dipolesmu(N, 3)through the mutual laddersdu(M, 2)of the pairs (mutual_field_realof the eager path), summed per atom over the compressed rowsrowsofpair_rows()(built here when not given);countas inpairs_forward(). With the scalarsguardof 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.