Specialized Template Function librapid::copySign(const mpfr&, const mpfr&)#

Function Documentation#

template<>
mpfr librapid::copySign(const mpfr &mag, const mpfr &sign) noexcept#

Copy the sign of a value to another value

Parameters
  • mag – The magnitude of the returned value

  • sign – The sign of the returned value

Returns

(<sign> <mag>)