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

◆ add()

void M2::ARingCCC::add ( ElementType & result,
const ElementType & a,
const ElementType & b ) const
inline

Definition at line 285 of file aring-CCC.hpp.

288 {
289 mpfr_add(&result.re, &a.re, &b.re, MPFR_RNDN);
290 mpfr_add(&result.im, &a.im, &b.im, MPFR_RNDN);
291 }
VALGRIND_MAKE_MEM_DEFINED & result(result)

References cc_struct::im, cc_struct::re, and result().

Referenced by addMultipleTo(), TEST(), TEST(), TEST(), and testRingNegateCCC().