xnn.ffnn.models.amoeba_ewald.mesh_layout#

xnn.ffnn.models.amoeba_ewald.mesh_layout(u, sizes, batch, mesh, order)[source]#

The spline stencils of atoms at the scaled fractional coordinates u (N, 3) (sizes the mesh dimensions as a tensor, batch each atom’s structure): the per-axis weights and their first and second derivatives (N, 3, p), each stencil point’s index into the meshes of the group laid side by side (N, p^3), and the stencil starts (N, 3).

Parameters:
Return type:

Tuple[Tensor, Tensor, Tensor, Tensor, Tensor]