mlx.core.floor_divide

mlx.core.floor_divide#

floor_divide(a: scalar | array, b: scalar | array, stream: None | Stream | Device = 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) -- Input array or scalar.

  • b (array) -- Input array or scalar.

回傳:

The quotient a // b.

回傳型別:

array