KLUFactor¶
- class sksparse.klu.KLUFactor[source]¶
Class to compute and store the KLU factorization of a sparse matrix.
The constructor computes the symbolic analysis of a sparse matrix \(A\) and determines a fill-reducing ordering such that:
\[L U + F = R P A Q.\]The numeric factorization is not computed until
factorize()is called.Note
Note that the use of the scale factor
Rdiffers between KLU and UMFPACK:\[\begin{split}L U &= P R_{\mathrm{umf}} A Q \quad &&\text{(UMFPACK)}, \\ L U + F &= R_{\mathrm{klu}} P A Q \quad &&\text{(KLU)}.\end{split}\]They are related by \(R_{\mathrm{klu}} = P R_{\mathrm{umf}} P^{\top}\).
- perm_r, perm_c
The row and column permutation arrays.
- Type:
- rblocks[source]¶
The row blocks in the BTF ordering.
- Type:
numpy.ndarray of int
Notes
This object is an interface to the SuiteSparse KLU library [1].
Added in version 0.5.0.
References
Methods