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 torsionsum K, thena_n = sum K cgforn1 tonmax(a multiplicity outside 2 tonmaxcounts as 1, as in the kernel), and for form 1b_n = sum K sg; the coefficient rows of forms 3 and 4 (kept for the same parameters).