mlx.core.outer

目錄

mlx.core.outer#

outer(a: array, b: array, /, *, stream: None | Stream | Device = None) array#

Compute the outer product of two 1-D arrays, if the array's passed are not 1-D a flatten op will be run beforehand.

參數:
  • a (array) -- Input array

  • b (array) -- Input array

回傳:

The outer product.

回傳型別:

array