mlx.core.remainder

目錄

mlx.core.remainder#

remainder(a: scalar | array, b: scalar | array, stream: None | Stream | Device = None) array#

Element-wise remainder of division.

Computes the remainder of dividing a with b with numpy-style broadcasting semantics. Either or both input arrays can also be scalars.

參數:
  • a (array) -- Input array or scalar.

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

回傳:

The remainder of a // b.

回傳型別:

array