mtl5.sparse.SparseLDLT_f64#
- class mtl5.sparse.SparseLDLT_f64(*args, **kwargs)#
- property L#
Unit lower triangular factor, as a copy, with its unit diagonal made explicit. A[perm][:, perm] == L @ diag(diagonal()) @ L.T.
- diagonal()#
The diagonal D. Its signs give the inertia: a negative entry means A is indefinite.
Signatures:
diagonal(self) -> numpy.ndarray[dtype=float64, shape=(*)]
- property dtype#
(self) -> str
- property n#
(self) -> int
- property nnz#
Nonzeros in the unit lower factor L, excluding its implicit unit diagonal (so L.nnz == nnz + n)
- property ordering#
(self) -> str
- property perm#
Symmetric fill-reducing permutation, p[new] = old
- refactor()#
Recompute L and D for a matrix with the SAME sparsity pattern, reusing the ordering and symbolic analysis
Signatures:
refactor(self, A: mtl5._core.SparseMatrix_f64) -> None
- property shape#
(self) -> tuple[int, int]
- solve()#
Solve A x = b via the LDL^T factor
Signatures:
solve(self, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False]) -> mtl5._core.DenseVector_f64