MLXBackend.mod#
- MLXBackend.mod(arr1, arr2, out=None)[source]#
Element-wise modulus of arrays.
- Parameters:
- arr1BackendArray
The dividend array.
- arr2BackendArray
The divisor array.
- outBackendArray, optional
Output array to write the result to. Returns a new array by default.
- Returns:
- BackendArray
Element-wise modulus of the input arrays.