CupyBackend.mod#

CupyBackend.mod(*args, **kwargs)#

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.