![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
This namespace contains helper functions for the PBR class.
Functions | |
PBR | one (PBR const &x) |
Returns the identity PBR with degree x.degree() . | |
PBR | one (size_t n) |
Returns the identity PBR with specified degree. | |
void | throw_if_adjacencies_unsorted (PBR const &x) |
Throws if a PBR has a list of points related to a point that is not sorted. | |
void | throw_if_entry_out_of_bounds (PBR const &x) |
Throws if a PBR has a point related to a point that is greater than degree(). | |
void | throw_if_invalid (PBR const &x) |
Throws if a PBR is invalid. | |
void | throw_if_not_even_length (PBR const &x) |
Throws if a PBR has an odd number of points. | |
This member function returns a new PBR with degree equal to the degree of x
, where every value is adjacent to its negative. Equivalently,
x | A PBR. |
PBR one | ( | size_t | n | ) |
This function returns a new PBR with degree equal to n
where every value is adjacent to its negative. Equivalently,
n | the degree. |
void throw_if_adjacencies_unsorted | ( | PBR const & | x | ) |
This function throws a LibsemigroupsException if the argument x
has a list of points related to a point that is not sorted.
x | the PBR to check. |
LibsemigroupsException | if x has a list of points related to a point that is not sorted. |
x
. void throw_if_entry_out_of_bounds | ( | PBR const & | x | ) |
This function throws a LibsemigroupsException if the argument x
has a point related to a point that is greater than degree().
x | the PBR to check. |
LibsemigroupsException | if x has a point related to a point that is greater than degree(). |
x
.
|
inline |
This function throws a LibsemigroupsException if the argument x
is not a valid PBR.
x | the PBR to check. |
LibsemigroupsException | if any of the following occur:
|
void throw_if_not_even_length | ( | PBR const & | x | ) |
This function throws a LibsemigroupsException if the argument x
does not describe a binary relation on an even number of points.
x | the PBR to check. |
LibsemigroupsException | x does not describe a binary relation on an even number of points. |