scipy.sparse.linalg.LinearOperator.

matmat#

LinearOperator.matmat(X)[source]#

Matrix-matrix multiplication.

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.