cupyx.scipy.sparse.linalg.splu#
- cupyx.scipy.sparse.linalg.splu(A, permc_spec=None, diag_pivot_thresh=None, relax=None, panel_size=None, options={})[source]#
Computes the LU decomposition of a sparse square matrix.
- Parameters:
A (cupyx.scipy.sparse.spmatrix) – Sparse matrix to factorize.
permc_spec (str) – (For further augments, see
scipy.sparse.linalg.splu()
)diag_pivot_thresh (float) –
relax (int) –
panel_size (int) –
options (dict) –
- Returns:
Object which has a
solve
method.- Return type:
Note
This function LU-decomposes a sparse matrix on the CPU using scipy.sparse.linalg.splu. Therefore, LU decomposition is not accelerated on the GPU. On the other hand, the computation of solving linear equations using the
solve
method, which this function returns, is performed on the GPU.See also