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

◆ subtract_multiple()

void M2::ARingCCi::subtract_multiple ( ElementType & result,
const ElementType & a,
const ElementType & b ) const
inline

Definition at line 367 of file aring-CCi.hpp.

370 {
371 // result -= a*b
372 ElementType ab;
373 init(ab);
374 mult(ab, a, b);
375 subtract(result, result, ab);
376 clear(ab);
377 }
void subtract(ElementType &result, const ElementType &a, const ElementType &b) const
void mult(ElementType &result, const ElementType &a, const ElementType &b) const
static void clear(ElementType &result)
void init(ElementType &result) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References clear(), init(), mult(), result(), and subtract().