xnn.ffnn.models.classical_cpu.Plan#
- class xnn.ffnn.models.classical_cpu.Plan(pos, cell, batch, dtype)[source]#
Bases:
objectThe energy and the forces of one structure at the positions in
pos(the tensor a stepper writes them into) from launches prepared once per list: each class of bonded terms and the pairs by one pass (_bonded_energy_forces(),_pairs_energy_forces()).- bonded(idx, shifts, kind, params, tiny, bound, options=None, extra=(0.0, 0.0))[source]#
One class of bonded terms (the arguments of
bonded_terms()).
- pairs(src, dst, shifts, n_local, t, q, table, ke, tiny, cutoff, width, form, by_rows=False, images=False, ptr=None, live=False, rows=None)[source]#
Pairs
i < kwithout exclusions (the arguments ofpair_terms());by_rowsa list sorted byiof one structure, by rows (_pairs_rows_energy_forces());imagesshiftsthe image indices ofstepper_pairs()(withby_rows),ptrits rows (the offsets of a compact list) androws(beg, end)where the rows are not contiguous (srcthenNone);livethe shifts read from their own buffer at each call (one the caller refills).