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.
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.
Thanks.
If you’ve also got Division and Floor, you can use: