mtl5.sparse.supernodal_lu#

mtl5.sparse.supernodal_lu(A, ordering: str = 'colamd', threshold: float = 1.0, max_super: int = 64, scale: bool = False, pivot_perturb: float = 0.0, accumulator: str | None = None)#

Supernodal LU: columns grouped into supernodes, applied as dense blocks.

The same factorization as splu organised to spend its time in dense block updates instead of scalar sparse ones. .nsuper reports how many supernodes were formed. scale=True row-equilibrates first, which matters most when the factor precision is narrow.

ordering must be “amd”, “colamd”, “rcm” or “nd” — the supernodal analysis has no natural-ordering path upstream.

The returned object exposes .solve(b) and .refactor(A2).

accumulator= types the dense numeric workspace — see splu.