I can’t find a modulus function in CasADi. I want to build a function with something like this:
from casadi import MX
angle = MX.sym('angle')
wrapped_angle = ((angle + 180) % 360) - 180
There doesn’t appear to be a mod
or divmod
function as far as I can see.
Maybe it’s not implemented for a reason, but if so I would like to know that.