remainder

odl.remainder(x1, x2, out=None)

Calculates the remainder of dividing each element x1_i of the input array x1 by the respective element x2_i of the input array x2.

The result has the same sign as the dividend x1, and the magnitude is less than the magnitude of the divisor x2. This is often called the “Euclidean modulo” operation.