cupyx.scipy.sparse.linalg.factorized#

cupyx.scipy.sparse.linalg.factorized(A)[source]#

Return a function for solving a sparse linear system, with A pre-factorized.

Parameters:

A (cupyx.scipy.sparse.spmatrix) – Sparse matrix to factorize.

Returns:

a function to solve the linear system of equations given in A.

Return type:

callable

Note

This function computes LU decomposition of 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 method returned by this function is performed on the GPU.