{ } Raw JSON

bundles / scipy 1.18.0 / scipy / sparse / linalg / _interface / LinearOperator / matmat

function

scipy.sparse.linalg._interface:LinearOperator.matmat

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

Signature

def matmat(self, X)

Summary

Matrix-matrix multiplication.

Extended Summary

Performs the operation A @ X where A is an M x N linear operator (or batch of linear operators) and X is a dense N x K matrix (or batch of dense matrices).

Parameters

X : {matrix, ndarray}

An array with shape (..., N, K) representing the dense matrix (or batch of dense matrices).

Returns

Y : {matrix, ndarray}

An array with shape (..., M, K).

Notes

This method wraps any user-specified matmat routine or overridden _matmat method to ensure that Y has the correct type.

Aliases

  • scipy.linalg._decomp_interpolative.LinearOperator.matmat