cupyx.scipy.sparse.linalg.LinearOperator#
- class cupyx.scipy.sparse.linalg.LinearOperator(shape, matvec, rmatvec=None, matmat=None, dtype=None, rmatmat=None)[source]#
Common interface for performing matrix vector products
To construct a concrete LinearOperator, either pass appropriate callables to the constructor of this class, or subclass it.
- Parameters:
shape (tuple) – Matrix dimensions
(M, N)
.matvec (callable f(v)) – Returns returns
A * v
.rmatvec (callable f(v)) – Returns
A^H * v
, whereA^H
is the conjugate transpose ofA
.matmat (callable f(V)) – Returns
A * V
, whereV
is a dense matrix with dimensions(N, K)
.dtype (dtype) – Data type of the matrix.
rmatmat (callable f(V)) – Returns
A^H * V
, whereV
is a dense matrix with dimensions(M, K)
.
See also
Methods
- __eq__(value, /)#
Return self==value.
- __ne__(value, /)#
Return self!=value.
- __lt__(value, /)#
Return self<value.
- __le__(value, /)#
Return self<=value.
- __gt__(value, /)#
Return self>value.
- __ge__(value, /)#
Return self>=value.
Attributes
- H#
Hermitian adjoint.
- T#
Transpose this linear operator.
- ndim = 2#