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

◆ wordPrefixFromMonom()

void FreeMonoid::wordPrefixFromMonom ( Word & result,
const Monom & m,
int endIndex ) const

Definition at line 294 of file FreeMonoid.cpp.

295{
296 result.init(m.begin() + mNumWeights + 1, m.begin() + mNumWeights + 1 + endIndex);
297}
const int mNumWeights
VALGRIND_MAKE_MEM_DEFINED & result(result)
const int * begin() const

References Monom::begin(), mNumWeights, and result().

Referenced by FreeAlgebra::lead_word_prefix(), and NCGroebner::twoSidedReduction().