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

◆ lower_content()

void Ring::lower_content ( ring_elem & c,
ring_elem g ) const
virtual

Reimplemented in FractionField, LocalRing, M2::RingQQ, PolyRing, PolyRingQuotient, and RingZZ.

Definition at line 308 of file ring.cpp.

310{
311 // The default implementation here ASSUMES that result and g are in the same
312 // ring!
313 if (is_zero(result)) result = g;
314}
virtual bool is_zero(const ring_elem f) const =0
VALGRIND_MAKE_MEM_DEFINED & result(result)

References is_zero(), and result().

Referenced by content(), and vec_content().