cupy.matmul#
- cupy.matmul = <cupy._core._gufuncs._GUFunc object>#
matmul(x1, x2, /, out=None, **kwargs)
Matrix product of two arrays.
Returns the matrix product of two arrays and is the implementation of the @ operator introduced in Python 3.5 following PEP465.
The main difference against cupy.dot are the handling of arrays with more than 2 dimensions. For more information see
numpy.matmul()
.- Parameters
x1 (cupy.ndarray) – The left argument.
x2 (cupy.ndarray) – The right argument.
out (cupy.ndarray, optional) – Output array.
**kwargs – ufunc keyword arguments.
- Returns
Output array.
- Return type
See also
numpy.matmul()