xnn.gnn.models.aimnet2.neighbor_matrix#
- xnn.gnn.models.aimnet2.neighbor_matrix(edge_index, num_nodes)[source]#
The edges of every center as rows of a padded matrix:
(nb_edge, nb_src).Row
ilists the edges into atomi(nb_edge, padded withE) and their neighbors (nb_src, padded withN),(N, M)for the largest number of neighborsM; the padding indexes a zero row appended to the gathered tensors.