Other member functions

This page contains information about the other member functions of the DynamicPTransf class not covered on another page.

inline size_t libsemigroups::DynamicPTransf::degree() const noexcept

Returns the degree of a partial transformation.

The degree of a partial transformation is the number of points used in its definition, which is equal to the size of the underlying container.

Parameters

(None)

Throws

(None) – This function is noexcept and is guaranteed never to throw.

Returns

A value of type size_t.

inline size_t libsemigroups::DynamicPTransf::hash_value() const

Returns a hash value.

Complexity

Linear in degree().

Parameters

(None)

Throws

(None) – This function guarantees not to throw a libsemigroups::LibsemigroupsException.

Returns

A value of type size_t.

inline size_t libsemigroups::DynamicPTransf::rank() const

Returns the number of distinct image values.

The rank of a partial transformation is the number of its distinct image values, not including libsemigroups::UNDEFINED.

Complexity

Linear in degree().

Parameters

(None)

Throws

(None) – This function guarantees not to throw a libsemigroups::LibsemigroupsException.

Returns

A value of type size_t.

static inline value_type libsemigroups::DynamicPTransf::undef() noexcept

Returns the value used to represent “undefined”.

This static function returns the value of type value_type used to represent an “undefined” value.

Parameters

(None)

Throws

This – function is noexcept and is guaranteed never to throw.

Returns

A value of type value_type.