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

◆ getCoeffOfMonom()

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

Definition at line 347 of file NCF4.cpp.

348{
349 for (auto t = f.cbegin(); t != f.cend(); ++t)
350 {
351 if (freeAlgebra().monoid().isEqual(t.monom(),m))
352 return t.coeff();
353 }
354 return freeAlgebra().coefficientRing()->zero();
355}
const Ring * coefficientRing() const
const FreeAlgebra & freeAlgebra() const
Definition NCF4.hpp:282
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().