finesse.cymath.cmatrix.KLUMatrix.factor¶
- KLUMatrix.factor(self)¶
Factor the matrix using KLU.
This method first analyzes the matrix structure using klu_l_analyze, then factors the matrix using klu_zl_factor, and finally sorts the factorization using klu_zl_sort.
- Raises
- Exception
If an error occurs in KLU during analysis, factoring, or sorting, an exception is raised with a message indicating the status code and its corresponding string.