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

◆ getCoeffOfMonom()

ring_elem NCGroebner::getCoeffOfMonom ( const Poly & f,
const Monom & m )
private

Definition at line 221 of file NCGroebner.cpp.

222{
223 for (auto t = f.cbegin(); t != f.cend(); ++t)
224 {
225 if (freeAlgebra().monoid().isEqual(t.monom(),m))
226 return t.coeff();
227 }
228 return freeAlgebra().coefficientRing()->zero();
229}
const Ring * coefficientRing() const
const FreeAlgebra & freeAlgebra() const
ring_elem zero() const
Definition ring.hpp:359
bool isEqual(const DMat< RT > &A, const DMat< RT > &B)

References FreeAlgebra::coefficientRing(), freeAlgebra(), and Ring::zero().

Referenced by autoreduceByLastElement().