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

◆ compare_elems()

int M2FreeAlgebraQuotient::compare_elems ( const ring_elem f,
const ring_elem g ) const
virtual

Implements Ring.

Definition at line 181 of file M2FreeAlgebraQuotient.cpp.

182{
183 auto f = reinterpret_cast<const Poly*>(f1.get_Poly());
184 auto g = reinterpret_cast<const Poly*>(g1.get_Poly());
185 return freeAlgebraQuotient().compare_elems(*f,*g);
186}
Polynomial< CoefficientRingType > Poly
int compare_elems(const Poly &f, const Poly &g) const
const FreeAlgebraQuotient & freeAlgebraQuotient() const

References FreeAlgebraQuotient::compare_elems(), freeAlgebraQuotient(), and ring_elem::get_Poly().