xnn.ffnn.models.classical_cpu.torsion_coefficients#

xnn.ffnn.models.classical_cpu.torsion_coefficients(k, n, cg, sg, form, nmax)[source]#

The torsion terms (M, S) of form 0 or 1 of _torsion() summed by multiplicity: per torsion sum K, then a_n = sum K cg for n 1 to nmax (a multiplicity outside 2 to nmax counts as 1, as in the kernel), and for form 1 b_n = sum K sg; the coefficient rows of forms 3 and 4 (kept for the same parameters).

Parameters:
Return type:

Tensor