xnn.ffnn.models.amoeba_ewald.jacobian_gradient#
- xnn.ffnn.models.amoeba_ewald.jacobian_gradient(parts, jac_inv, batch, groups)[source]#
The gradient of a mesh sum with respect to the Jacobians
J(G, 3, 3)of its structures, at fixed scaled coordinates: the Cartesian multipoles and derivatives enter and leave the mesh throughJalone, so it is(sum_n X_n Y_n) J^-Toverparts, pairs(X, Y)of a Cartesian quantity(N, 3, m)and the gradient of the sum with respect to it(N, m, 3)(a dipole and the gradient at it, a symmetrized quadrupole and the Hessian at it).