mlx.core.floor_divide

mlx.core.floor_divide#

floor_divide(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) → array#

Element-wise integer division.

If either array is a floating point type then it is equivalent to calling floor() after divide().

參數:
  • a (array) -- 輸入陣列或純量。

  • b (array) -- 輸入陣列或純量。

回傳值:

The quotient a // b.

回傳值型別:

array