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

◆ subtract_multiple()

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

Definition at line 246 of file aring-RRi.hpp.

249 {
250 // result -= a*b
251 ElementType ab;
252 init(ab);
253 mult(ab, a, b);
254 subtract(result, result, ab);
255 clear(ab);
256 }
static void clear(ElementType &result)
void subtract(ElementType &result, const ElementType &a, const ElementType &b) const
void init(ElementType &result) const
void mult(ElementType &result, const ElementType &a, const ElementType &b) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

Referenced by TEST().