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 vectors vec (M, 3) and the sum of every vector times its gradient (3, 3) in float64 (no autograd).

Parameters:
Return type:

tuple