scipy.optimize.LbfgsInvHessProduct.
matmat#
- LbfgsInvHessProduct.matmat(X)[source]#
Matrix-matrix multiplication.
Performs the operation
A @ XwhereAis anMxNlinear operator (or batch of linear operators) and X is a denseNxKmatrix (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
matmatroutine or overridden_matmatmethod to ensure that Y has the correct type.