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) -- 輸入陣列

  • b (array) -- 輸入陣列

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

回傳值:

The vector dot product.

回傳值型別:

array