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

◆ add()

void M2::ARingCC::add ( ElementType & res,
const ElementType & a,
const ElementType & b ) const
inline

Definition at line 255 of file aring-CC.hpp.

256 {
258 result.re = a.re + b.re;
259 result.im = a.im + b.im;
260 set(res, result);
261 }
void set(ElementType &result, const ElementType &a) const
Definition aring-CC.hpp:157
elem ElementType
Definition aring-CC.hpp:81
VALGRIND_MAKE_MEM_DEFINED & result(result)

References cc_doubles_struct::im, cc_doubles_struct::re, result(), and set().

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