Defined bipart.hpp
.
This page contains an overview of the functionality in libsemigroups
for bipartitions and blocks.
Helper functions for bipartitions and blocks are documented:
|
template<typename T> |
static constexpr bool | IsBipartition = detail::IsBipartitionHelper<std::decay_t<T>>::value |
| Helper variable template.
|
|
◆ operator!=()
- Parameters
-
x | a bipartition. |
y | a bipartition. |
- Returns
- A value of type
bool
.
- Exceptions
- This function guarantees not to throw a LibsemigroupsException.
- Complexity
- At worst linear in the degree of
x
and y
.
◆ operator*()
Returns a newly constructed bipartition equal to the product of x
and y
.
- Parameters
-
x | a bipartition. |
y | a bipartition. |
- Returns
- A value of type
Bipartition
- Exceptions
- This function guarantees not to throw a LibsemigroupsException.
- Complexity
- Quadratic in
x.degree()
.
- Warning
- This function expects its arguments to have equal degree, but this is not checked.
◆ operator<=()
Convenience function that just calls operator<
and operator==
.
◆ operator>()
Convenience function that just calls operator<
with the arguments switched.
◆ operator>=()
Convenience function that just calls operator<=
with the arguments switched.
◆ to_human_readable_repr()
std::string to_human_readable_repr |
( |
Bipartition const & | x, |
|
|
std::string_view | braces = "{}", |
|
|
size_t | max_width = 72 ) |
|
nodiscard |
Return a human readable representation (std::string) of a bipartition. The braces to be used in the returns string can be specified using the argument braces
. By default the returned string can be used to reconstruct the bipartition x
. If the width of this returned string would be greater than max_width
, then an abbreviated string is returned instead.
- Parameters
-
x | the Bipartition object. |
braces | the braces to use in the returned string (default: "{}" ). |
max_width | the maximum width of the returned string (default: 72 ). |
- Returns
- A std::string representation of
x
.
- Exceptions
-
◆ IsBipartition
template<typename T>
bool IsBipartition = detail::IsBipartitionHelper<std::decay_t<T>>::value |
|
staticconstexpr |
The value of this variable is true
if the template parameter T
decays to Bipartition.
- Template Parameters
-