Function lupnt::mod

Function Documentation

Real lupnt::mod(Real x, Real y)

Get the modulus of two numbers.

Floating-point modulus x mod y (std::fmod), preserving x’s autodiff derivative information.

Parameters:
  • x – First number

  • y – Second number

Returns:

Modulus of the two numbers