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

◆ abs_squared()

void M2::ARingCCC::abs_squared ( ARingRRR::ElementType & result,
const ElementType & a ) const
inline

Definition at line 446 of file aring-CCC.hpp.

447 {
449 ARingRRR::Element s(mRRR);
451 mRRR.add(result, result, s);
452 }
const ARingRRR mRRR
Definition aring-CCC.hpp:75
const ARingRRR::ElementType & realPartReference(const ElementType &a) const
const ARingRRR::ElementType & imaginaryPartReference(const ElementType &a) const
void size_t s
Definition m2-mem.cpp:271
VALGRIND_MAKE_MEM_DEFINED & result(result)

References imaginaryPartReference(), mRRR, realPartReference(), result(), and s.

Referenced by abs().