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 < k within cutoff on the CPU from one grid search (grid of cell_grid()), or from testing every pair where grid is the edges of a cell too small for one (small_cell()), the excluded pairs of the compressed rows rows (or None) left out, each atom’s partners within inner first where given: i, k (int32), the image indices (int8) of grid_pairs_staged() and where each atom’s pairs start (N + 1,) (int64), or None when the search needs its two passes; work a dict that keeps the search’s buffers between calls. Without compact: no list of i (a reader of rows needs none), (None, k, img, start, (beg, end)) with atom i’s partners k[beg[i]:end[i]]. half (a grid): each pair once in the row of either atom (k may be lower than i; half the search’s candidates).

Parameters:
Return type:

tuple | None