This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / 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:300

Signature

def _matvec(self, x)

Summary

Default matrix-vector multiplication handler.

Extended Summary

If self is a linear operator of shape (..., M, N), then this method will be called on a shape (..., N) array, and should return a shape (..., M) array.

Falls back to _matmat, so defining that will define matrix-vector multiplication as well.

Aliases

  • scipy.linalg._decomp_interpolative.LinearOperator._matvec