title: Alternative to Modulo operator
body: <p>I am using OpenCV library. It doesn't have a modulo operator that can be applied to WHOLE matrix.
  It has a Multiplication, Subtraction operators for a matrix.</p>
  
  <p>Is there any way I can combine these operations to have an alternative to modulo operation?
  I am looking for modulo of 2*pi.
  If there are multiple of 2*pi in a row of matrix, the product of that row will be zero. It will ease my life and save considerable performance compare to looping every element of matrix.</p>
  
  <p>Thanks.</p>