Solve the sparse linear system Ax=b, where b may be a vector or a matrix.
Parameters : | A : ndarray or sparse matrix
b : ndarray or sparse matrix
permc_spec : str, optional
use_umfpack : bool (optional)
|
---|---|
Returns : | x : ndarray or sparse matrix
|
Notes
For solving the matrix expression AX = B, this solver assumes the resulting matrix X is sparse, as is often the case for very sparse inputs. If the resulting X is dense, the construction of this sparse result will be relatively expensive. In that case, consider converting A to a dense matrix and using scipy.linalg.solve or its variants.