mtl5.sparse.SparseQR_f64#
- class mtl5.sparse.SparseQR_f64(*args, **kwargs)#
- property R#
Upper triangular factor R (ncols x ncols), as a copy. A[:, col_perm] == Q @ R; Q is held implicitly as Householder vectors and is not exposed, but R.T @ R == A[:, col_perm].T @ A[:, col_perm].
- property col_perm#
Column permutation from the fill-reducing ordering, q[new] = old
- property dtype#
(self) -> str
- property nnz#
Nonzeros in the upper factor R
- property ordering#
(self) -> str
- refactor()#
Recompute R and the Householder vectors 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()#
Least-squares solution of min ||A x - b||_2
Signatures:
solve(self, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False]) -> mtl5._core.DenseVector_f64