mtl5.sparse.SparseLU_f64#

class mtl5.sparse.SparseLU_f64(*args, **kwargs)#
property L#

Unit lower triangular factor, diagonal stored, as a copy. A[row_perm][:, col_perm] == L @ U. Exact up to rounding only when num_perturbed == 0: a perturbed pivot (pivot_perturb > 0) makes L @ U reconstruct the perturbed matrix, not A.

property U#

Upper triangular factor, as a copy. A[row_perm][:, col_perm] == L @ U. Exact up to rounding only when num_perturbed == 0: a perturbed pivot (pivot_perturb > 0) makes L @ U reconstruct the perturbed matrix, not A.

property accumulator#

The accumulator policy this factor was built with

property col_perm#

Column permutation from the fill-reducing ordering, q[new] = old

property dtype#

(self) -> str

property n#

(self) -> int

property nnz#

Nonzeros in L plus U — the fill the ordering produced

property num_perturbed#

Pivots replaced by perturbation; 0 means a clean factor

property ordering#

(self) -> str

refactor()#

Recompute the numeric factors for a matrix with the SAME sparsity pattern, reusing the ordering, symbolic analysis and pivot sequence

Signatures:

refactor(self, A: mtl5._core.SparseMatrix_f64) -> None
property row_perm#

Row permutation from threshold pivoting, p[new] = old

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