mod
- arrayfire.mod(x1: int | float | Array, x2: int | float | Array, /) Array
Calculate the modulus of two arrays or a scalar and an array.
Parameters
- x1int | float | Array
The first array or scalar operand.
- x2int | float | Array
The second array or scalar operand.
Returns
- resultArray
The array containing the modulus values after performing the operation.
Raises
- ValueError
If both operands are scalars or if the arrays’ shapes do not match.