xnn.ffnn.models.classical_cpu.Plan#

class xnn.ffnn.models.classical_cpu.Plan(pos, cell, batch, dtype)[source]#

Bases: object

The 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()).

Parameters:
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()).

Parameters:
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 < k without exclusions (the arguments of pair_terms()); by_rows a list sorted by i of one structure, by rows (_pairs_rows_energy_forces()); images shifts the image indices of stepper_pairs() (with by_rows), ptr its rows (the offsets of a compact list) and rows (beg, end) where the rows are not contiguous (src then None); live the shifts read from their own buffer at each call (one the caller refills).

Parameters: