scipy.sparse.linalg.LinearOperator.
rmatvec#
- LinearOperator.rmatvec(x)[source]#
Adjoint matrix-vector multiplication.
Applies
A^Hto x, whereAis anMxNlinear operator (or batch of linear operators) and x is a row vector (or batch of such vectors).- Parameters:
- x{matrix, ndarray}
An array with shape
(..., M)representing a row vector (or batch of row vectors), or an array with shape(M, 1)representing a column vector.Added in version 1.18.0: A
FutureWarningis now emitted for column vector input of shape(M, 1), for which an array with shape(N, 1)is returned.rmatmatcan be called instead for identical behaviour on such input.
- Returns:
- y{matrix, ndarray}
An array with shape
(..., N).
Notes
This method wraps the user-specified
rmatvecroutine or overridden_rmatvecmethod to ensure that y has the correct shape and type.