jax.numpy.matmul
Warning
This page was created from a pull request (#9655).
jax.numpy.matmulΒΆ
- jax.numpy.matmul(a, b, *, precision=None)[source]ΒΆ
Matrix product of two arrays.
LAX-backend implementation of
matmul().In addition to the original NumPy arguments listed below, also supports
precisionfor extra control over matrix-multiplication precision on supported devices.precisionmay be set toNone, which means default precision for the backend, aPrecisionenum value (Precision.DEFAULT,Precision.HIGHorPrecision.HIGHEST) or a tuple of twoPrecisionenums indicating separate precision for each argument.Original docstring below.
- Parameters
out (ndarray, optional) β A location into which the result is stored. If provided, it must have a shape that matches the signature (n,k),(k,m)->(n,m). If not provided or None, a freshly-allocated array is returned.
**kwargs β For other keyword-only arguments, see the ufunc docs.
- Returns
y β The matrix product of the inputs. This is a scalar only when both x1, x2 are 1-d vectors.
- Return type