remainder

Performs element-wise modulo (%) operator on the array. The array is changed in place.

Parameters

array

the array to apply the modulo operator on

divisor

the divisor for each element