factorisation(word_type&, element_index_type)ΒΆ

void libsemigroups::FroidurePin::factorisation(word_type &word, element_index_type pos)

Changes word in-place to contain a word in the generators equal to the pos element of the semigroup.

The key difference between this member function and FroidurePin::minimal_factorisation(word_type& word, element_index_type pos), is that the resulting factorisation may not be minimal. If pos is greater than the size of the semigroup, then a LibsemigroupsException is thrown.