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
Returns

Output array.

Return type

cupy.ndarray

See also

numpy.matmul()