kicad2ems.mom25d.ldl

A complex-symmetric LDL^T factor without pivoting (blocked, NumPy): the
reference for a GPU version and the trial of whether one preconditions
mom25d's matrices (tools/mom25d_ldl_trial.py).

MoM's Z is complex symmetric (Z = Z^T, not Hermitian), so Z = L D L^T with L
unit lower triangular and D diagonal holds half of an LU's numbers and takes
half its work. Without pivoting it relies on the equilibrated matrix's
diagonal (the fill's self terms dominate each row); the mixed-precision
refinement (GMRES on the exact operator) corrects what a complex64 factor
loses, as it does for the LU.

    F = factor(A)          # A: (n, n) complex, symmetric; overwritten
    x = solve(F, b)        # (n,) or (n, k)

factor raises ZeroDivisionError on a zero pivot (no pivoting to go round it).
kicad2ems.mom25d.ldl.factor(A, nb=256)[source]
L D L^T of the complex-symmetric A in place (its lower triangle: L
below the diagonal, D on it), right-looking by blocks of nb. Returns A.
kicad2ems.mom25d.ldl.solve(F, b)[source]
Z^-1 b with factor()'s L D L^T: L y = b, z = y / D, L^T x = z.