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

◆ mult()

ring_elem PolyRing::mult ( const ring_elem f,
const ring_elem g ) const
virtual

Implements Ring.

Definition at line 821 of file poly.cpp.

822{
823 polyheap H(this);
824 for (Nterm& a : f)
825 H.add(mult_by_term(g, a.coeff, a.monom));
826 return H.value();
827}
virtual ring_elem mult_by_term(const ring_elem f, const ring_elem c, const_monomial m) const
Definition poly.cpp:781

References polyheap::add(), mult_by_term(), and polyheap::value().

Referenced by gcd_extended(), power(), SchurRing::power(), and power_direct().