xnn.ffnn.models.amoeba_ewald.cell_jacobian#

xnn.ffnn.models.amoeba_ewald.cell_jacobian(fn, cells)[source]#

The derivative of fn(cells) (G, ...) with respect to the nine entries of every structure’s own cell (G, 3, 3), (9, G, ...), by forward-mode differentiation (one pass over the nine directions).

Parameters:

cells (Tensor)

Return type:

Tensor