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

◆ subtract_multiple()

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

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

296 {
297 // result -= a*b
298 ElementType ab;
299 mult(ab, a, b);
300 subtract(result, result, ab);
301 }
void mult(ElementType &res, const ElementType &a, const RealElementType &b) const
Definition aring-CC.hpp:303
elem ElementType
Definition aring-CC.hpp:81
void subtract(ElementType &res, const ElementType &a, const ElementType &b) const
Definition aring-CC.hpp:283
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

Referenced by TEST().