mlx.core.vecdot

目录

mlx.core.vecdot#

vecdot(a: array, b: array, /, *, axis: int = -1, stream: StreamOrDevice = None) → array#

Compute the vector dot product of two arrays along an axis.

参数:
  • a (array) -- Input array

  • b (array) -- Input array

  • axis (int, optional) -- Axis over which to compute the dot product. Default: -1.

返回:

The vector dot product.

返回类型:

array