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

◆ isEqual()

bool FreeMonoid::isEqual ( const Monom & m1,
const Monom & m2 ) const

Definition at line 162 of file FreeMonoid.cpp.

163{
164 //if (wordLength(m1) != wordLength(m2)) return false;
165 return std::equal(m1.begin(),m1.end(),m2.begin(),m2.end());
166}
const int * end() const
const int * begin() const

References Monom::begin(), and Monom::end().