Sparse arrays (dpnp.scipy.sparse)

Sparse matrix classes

csr_matrix

Compressed Sparse Row matrix on a SYCL device.

Identifying sparse matrices

issparse

Determine whether x is a dpnp sparse matrix type.

Sparse linear algebra (dpnp.scipy.sparse.linalg)

Abstract linear operators

LinearOperator

Common interface for performing matrix-vector products, backed by dpnp arrays.

aslinearoperator

Return A as a LinearOperator.

Iterative solvers for linear systems

cg

Use Conjugate Gradient iteration to solve Ax = b for a Hermitian positive-definite A.

gmres

Use Generalized Minimal RESidual iteration to solve Ax = b.

minres

Use MINimum RESidual iteration to solve Ax = b.