Static member functions¶
This page contains information about the static member functions of the Bipartition
class.
-
static Bipartition libsemigroups::Bipartition::identity(size_t n)¶
Returns an identity bipartition.
The identity bipartition of degree \(n\) has blocks \(\{i, -i\}\) for all \(i\in \{0, \ldots, n - 1\}\). This member function returns a new identity bipartition of degree equal to
n
.- Parameters
n – the degree of the identity to be returned.
- Throws
(None) – This function guarantees not to throw a
LibsemigroupsException
.- Returns
A newly constructed Bipartition.
-
template<typename T>
static inline Bipartition libsemigroups::Bipartition::make(T const &cont)¶ Validates the arguments, constructs a bipartition and validates it.
- Template Parameters
T – the type of the parameter
cont
- Parameters
cont – either a vector providing a lookup for the blocks of the bipartition or a vector of vectors (or initializer list).
- Throws
LibsemigroupsException – if the arguments do not describe a bipartition.
LibsemigroupsException – if the constructed bipartition is not valid.
-
static inline Bipartition libsemigroups::Bipartition::make(std::initializer_list<uint32_t> const &cont)¶
Validates the arguments, constructs a bipartition and validates it.
See make(T const&) for full details.