bundles / scipy latest / scipy / sparse / linalg / _interface / LinearOperator / matvec
function
scipy.sparse.linalg._interface:LinearOperator.matvec
source: build-install/usr/lib/python3.14/site-packages/scipy/sparse/linalg/_interface.py:365
Signature
def matvec(self, x)Summary
Matrix-vector multiplication.
Extended Summary
Applies A to x, where A is an M x N linear 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
(..., N)representing a row vector (or batch of row vectors).
Returns
y: {matrix, ndarray}An array with shape
(..., M).
Notes
This method wraps the user-specified matvec routine or overridden _matvec method to ensure that y has the correct shape and type.
Aliases
scipy.linalg._decomp_interpolative.LinearOperator.matvec