scikits.umfpack.umfpack.UmfpackContext.lu¶
- UmfpackContext.lu(mtx)¶
Perform LU decomposition.
For a given matrix A, the decomposition satisfies:
LU = PRAQ when do_recip is true LU = P(R^-1)AQ when do_recip is false
- Parameters:
- mtxscipy.sparse.csc_matrix or scipy.sparse.csr_matrix
Input.
- Returns:
- Lcsr_matrix
Lower triangular m-by-min(m,n) CSR matrix
- Ucsc_matrix
Upper triangular min(m,n)-by-n CSC matrix
- Pndarray
Vector of row permutations
- Qndarray
Vector of column permutations
- Rndarray
Vector of diagonal row scalings
- do_recipbool
Whether R is R^-1 or R