jax.lax.dot
Warning
This page was created from a pull request (#9655).
jax.lax.dot¶
- jax.lax.dot(lhs, rhs, precision=None, preferred_element_type=None)[source]¶
Vector/vector, matrix/vector, and matrix/matrix multiplication.
Wraps XLA’s Dot operator.
For more general contraction, see the dot_general operator.
- Parameters
lhs (
Any
) – an array of rank 1 or 2.rhs (
Any
) – an array of rank 1 or 2.precision (
Union
[None
,str
,Any
,Tuple
[str
,str
],Tuple
[Any
,Any
]]) – Optional. EitherNone
, which means the default precision for the backend, aPrecision
enum value (Precision.DEFAULT
,Precision.HIGH
orPrecision.HIGHEST
) or a tuple of twoPrecision
enums indicating precision oflhs`
andrhs
.preferred_element_type (
Optional
[Any
]) – Optional. EitherNone
, which means the default accumulation type for the input types, or a datatype, indicating to accumulate results to and return a result with that datatype.
- Return type
- Returns
An array containing the product.