minimal_factorisation(element_index_type)ΒΆ

word_type libsemigroups::FroidurePin::minimal_factorisation(element_index_type)

Returns a minimal libsemigroups::word_type which evaluates to the TElementType in position pos of this.

This is the same as the two-argument member function for FroidurePin::minimal_factorisation, but it returns a pointer to the factorisation instead of modifying an argument in-place. If pos is greater than the size of the semigroup, then a LibsemigroupsException is thrown.