![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
This namespace contains helper functions for the Bipartition class.
Functions | |
Bipartition | one (Bipartition const &f) |
Return the identity bipartition with the same degree as the given bipartition. | |
void | throw_if_invalid (Bipartition const &x) |
Checks a bipartition. | |
std::vector< std::vector< int32_t > > | underlying_partition (Bipartition const &x) |
Return the underlying partition of a Bipartition object. | |
|
nodiscard |
f | the bipartition. Returns the identity bipartition of degree equal to f.degree() . |
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 the degree of this
.
void throw_if_invalid | ( | Bipartition const & | x | ) |
This function checks a Bipartition object, and throws an exception if the object is not valid.
x | the bipartition. |
LibsemigroupsException | if x is invalid. |
|
nodiscard |
The underlying partition of a bipartition x
is the partition of a subset \(P\) of \(\{-n, \ldots, -1\}\cup \{1, \ldots,
n\}\) such that:
x
is a transverse block.x | the bipartition. |