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

◆ addMultipleTo() [1/2]

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

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

276 {
278 result.re += a.re * b.re - a.im * b.im;
279 result.im += a.im * b.re + a.re * b.im;
280 set(res, result);
281 }
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().