cupyx.scipy.sparse.linalg.spilu#

cupyx.scipy.sparse.linalg.spilu(A, drop_tol=None, fill_factor=None, drop_rule=None, permc_spec=None, diag_pivot_thresh=None, relax=None, panel_size=None, options={})[source]#

Computes the incomplete LU decomposition of a sparse square matrix.

Parameters:
Returns:

Object which has a solve method.

Return type:

cupyx.scipy.sparse.linalg.SuperLU

Note

This function computes incomplete LU decomposition of a sparse matrix on the CPU using scipy.sparse.linalg.spilu (unless you set fill_factor to 1). Therefore, incomplete 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.

If you set fill_factor to 1, this function computes incomplete LU decomposition on the GPU, but without fill-in or pivoting.