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

◆ subtract_multiple()

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

Definition at line 226 of file aring-RRR.hpp.

229 {
230 // result -= a*b
231 ElementType ab;
232 init(ab);
233 mult(ab, a, b);
234 subtract(result, result, ab);
235 clear(ab);
236 }
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().

Referenced by TEST().