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

◆ subtract()

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

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

286 {
288 result.re = a.re - b.re;
289 result.im = a.im - b.im;
290 set(res, result);
291 }
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 almostEqual(), subtract_multiple(), and TEST().