{ } Raw JSON

bundles / scipy latest / scipy / sparse / linalg / _interface / LinearOperator / _matvec

function

scipy.sparse.linalg._interface:LinearOperator._matvec

source: /scipy/sparse/linalg/_interface.py :219

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,) or (N, 1) ndarray, and should return a shape (M,) or (M, 1) ndarray.

This default implementation falls back on _matmat, so defining that will define matrix-vector multiplication as well.

Aliases

  • scipy.linalg._decomp_interpolative.LinearOperator._matvec