mtl5.sparse.SupernodalLU_f64#
- class mtl5.sparse.SupernodalLU_f64(*args, **kwargs)#
- property L#
Unit lower triangular factor, diagonal stored, as a copy. With scale=True, (diag(row_scale) @ A)[row_perm][:, col_perm] == L @ U. With scale=False, row_scale is None and the identity is A[row_perm][:, col_perm] == L @ U. Either holds up to rounding only when num_perturbed == 0: a perturbed pivot makes L @ U reconstruct the perturbed matrix.
- property U#
Upper triangular factor, as a copy. See L for the identity.
- property accumulator#
The accumulator policy this factor was built with
- property col_perm#
Column permutation, q[new] = old: the fill-reducing ordering followed by the column elimination tree postorder
- property dtype#
(self) -> str
- property n#
(self) -> int
- property nnz#
Nonzeros in L plus U
- property nsuper#
Supernodes formed; fewer, larger supernodes mean more of the work runs as dense block updates
- property num_perturbed#
(self) -> int
- property ordering#
(self) -> str
- refactor()#
Recompute the numeric factors for a matrix with the SAME sparsity pattern, reusing the ordering, supernode partition and pivot sequence
Signatures:
refactor(self, A: mtl5._core.SparseMatrix_f64) -> None
- property row_perm#
Row permutation from threshold pivoting, p[new] = old
- property row_scale#
Row equilibration factors indexed by ORIGINAL row. None when the matrix was factored unscaled (scale=False): reconstruct from A itself then, with no row scaling
- property shape#
(self) -> tuple[int, int]
- solve()#
Solve A x = b using the stored factors
Signatures:
solve(self, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False]) -> mtl5._core.DenseVector_f64