xnn.ffnn.models.amoeba_valence.energies_and_gradient#
- xnn.ffnn.models.amoeba_valence.energies_and_gradient(vec, table)[source]#
The per-atom rows
(8, N)of the valence terms, the gradient of their sum with respect to the stacked bonded vectorsvec(M, 3)and the sum of every vector times its gradient(3, 3)in float64 (no autograd).- Parameters:
vec (Tensor)
table (ValenceTable)
- Return type: