Definition at line 25 of file relem.cpp.
26{
27 const PolynomialRing *P =
R->cast_to_PolynomialRing();
29 if (P != nullptr)
30 {
32 }
33 auto Q =
dynamic_cast<const M2FreeAlgebra *
>(
R);
34 if (Q != nullptr)
35 {
36 return Q->n_terms(
val);
37 }
38
39 return 1;
40}
virtual int n_logical_terms(int nvars0, const ring_elem f) const =0
References is_zero(), PolynomialRing::n_logical_terms(), R, and val.
Referenced by IM2_RingElement_n_terms().