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

◆ eval()

ring_elem M2FreeAlgebraQuotient::eval ( const RingMap * map,
const ring_elem f,
int first_var ) const
virtual

Implements Ring.

Definition at line 319 of file M2FreeAlgebraQuotient.cpp.

320{
321 // map: R --> S, this = R.
322 // f is an ele ment in R
323 // return an element of S.
324
325 auto f = reinterpret_cast<const Poly*>(ff.get_Poly());
326 auto g = freeAlgebraQuotient().eval(map, *f, first_var);
327 return g;
328}
Polynomial< CoefficientRingType > Poly
ring_elem eval(const RingMap *map, const Poly &f, int first_var) const
const FreeAlgebraQuotient & freeAlgebraQuotient() const

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