xnn.common.models.dispersion_fast.atm_cpu.Plan#

class xnn.common.models.dispersion_fast.atm_cpu.Plan(edge_index, n_atoms, tile=None)[source]#

Bases: object

The tile-pair jobs and repeated-atom pairs of one edge list (sorted by center, then neighbor).

Variables:
  • order (Tensor) – The edges in center, then neighbor order (E,).

  • dst (src,) – Neighbor and center of the sorted edges.

  • jobs (Tensor) – (J, 4): center, first row of tile a, first row of tile b, end of the center’s rows.

  • job_tiles (Tensor) – (J, 2): the numbers of tiles a and b among all centers’ tiles.

  • tile_end (tile_rows,) – Every tile’s first row and its center’s end of rows.

  • pair_k (pair_center, pair_j,) – The repeated-atom pairs (sorted rows j < k) and their center (built on first use).

  • groups (Tensor) – (G, 3): center, first row and size of every group of two or more edges to one atom.

  • self_rows (Tensor) – The rows of the centers’ own images.

Parameters:
self_jobs(tile)[source]#

Every image of a center with every tile rows of the center’s other neighbors: the jobs (S, 6) (center, image row, first row of the tile, end of the center’s rows, the center’s own group), each job’s tile number among all centers’ tiles of tile rows, and those tiles’ first rows and ends.

Parameters:

tile (int)

Return type:

Tuple[Tensor, Tensor, Tensor, Tensor]