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

◆ isSuffix()

bool WordTable::isSuffix ( Word word,
int & output ) const

Definition at line 147 of file WordTable.cpp.

149{
150 for (auto i = 0; i < mMonomials.size(); ++i)
151 {
152 if (isSuffixOf(mMonomials[i], word))
153 {
154 output = i;
155 return true;
156 }
157 }
158 return false;
159}
std::vector< int > word
std::vector< Word > mMonomials
static bool isSuffixOf(Word word1, Word word2)

References isSuffixOf(), mMonomials, and word.

Referenced by TEST().