Macaulay2 Engine
Loading...
Searching...
No Matches

◆ abs()

void M2::ARingRRR::abs ( ElementType & result,
const ElementType & a ) const
inline

Definition at line 322 of file aring-RRR.hpp.

323 {
324 if (mpfr_cmp_si(&a, 0) < 0)
325 negate(result, a);
326 else
327 set(result, a);
328 }
void negate(ElementType &result, const ElementType &a) const
void set(ElementType &result, const ElementType &a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References negate(), result(), and set().