xnn.ffnn.models.classical_cpu.stepper_pairs#
- xnn.ffnn.models.classical_cpu.stepper_pairs(pos, cutoff, grid, rows, inner=None, work=None, compact=True, half=False)[source]#
A stepper’s pairs
i < kwithincutoffon the CPU from one grid search (gridofcell_grid()), or from testing every pair wheregridis the edges of a cell too small for one (small_cell()), the excluded pairs of the compressed rowsrows(orNone) left out, each atom’s partners withininnerfirst where given:i,k(int32), the image indices (int8) ofgrid_pairs_staged()and where each atom’s pairs start(N + 1,)(int64), orNonewhen the search needs its two passes;worka dict that keeps the search’s buffers between calls. Withoutcompact: no list ofi(a reader of rows needs none),(None, k, img, start, (beg, end))with atomi’s partnersk[beg[i]:end[i]].half(a grid): each pair once in the row of either atom (kmay be lower thani; half the search’s candidates).