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

◆ prefix()

Word prefix ( const Word vec,
int lengthOfPrefix )

Definition at line 80 of file SuffixTree.cpp.

81{
82 // this command sets the pointers to the initial segment of vec
83 return Word(vec.begin(),vec.begin()+lengthOfPrefix);
84}
Non-owning view of a non-commutative word: [begin, end) of int variable indices.
Definition Word.hpp:56

Referenced by NCGroebner::createOverlapLeadWord(), NCGroebner::createOverlapPoly(), NCF4::findDivisor(), NCF4::findPreviousReducerPrefix(), WordTable::overlaps(), WordWithDataTable::overlaps(), PRINT_ELEMENTS(), SuffixTree::sharedPrefix(), and SuffixTree::splitArc().