Definition at line 147 of file relem.cpp.
150{
151 const PolynomialRing *P =
R->cast_to_PolynomialRing();
152 if (P != nullptr)
153 {
155 }
156 const M2FreeAlgebra* A =
dynamic_cast<const M2FreeAlgebra*
>(
R);
157 if (A != nullptr)
158 {
160 }
161 ERROR(
"expected polynomial ring");
162 return nullptr;
163}
Poly * get_terms(const Poly *f, int lo, int hi) const
virtual ring_elem get_terms(int nvars0, const ring_elem f, int lo, int hi) const =0
RingElement(const Ring *R, ring_elem f)
References ERROR, M2FreeAlgebra::get_terms(), PolynomialRing::get_terms(), R, RingElement(), and val.
Referenced by IM2_RingElement_get_terms().