word_to_element¶
-
element_type
libsemigroups::FroidurePin::word_to_element(word_type const&) const¶ Returns a copy of the element of
thisrepresented by the wordw.The parameter
wmust consist of non-negative integers less than FroidurePin::nrgens, or a LibsemigroupsException will be thrown. This member function returns a copy of the element ofthisobtained by evaluatingw. This is equivalent to finding the productxof the generators FroidurePin::generator(w[i]).A copy is returned instead of a reference, because the element of
thiscorresponding towmay not yet have been enumerated.