Blocks¶
-
class Blocks¶
Defined
bipart.hpp
.Blocks is a class representing signed partitions of the set \(\{0, \ldots, n - 1\}\).
It is possible to associate to every Bipartition a pair of blocks, Bipartition::left_blocks() and Bipartition::right_blocks(), which determine the Green’s \(\mathscr{L}\)- and \(\mathscr{R}\)-classes of the Bipartition in the monoid of all bipartitions. This is the purpose of this class.
The Blocks class is not currently used widely in
libsemigroups
but are used extensively in the GAP package Semigroups package for GAP.
Member types¶
Type for const iterators pointing to the index of the block. |
|
Type for iterators pointing to the index of the block. |
|
Type for const iterators pointing to the transverse block lookup. |
Constructors¶
Constructs a blocks object of size 0. |
|
Default copy constructor. |
|
Default move constructor. |
|
Constructs a blocks object from iterators. |
|
Constructs a blocks object of given degree. |
|
Default copy assignment operator. |
|
Default move assignment operator. |
Initialisation¶
Set the block that a point belongs to. |
|
Set whether or not the block containing a point is transverse. |
Operators¶
Compare two blocks objects for inequality. |
|
Compare two blocks objects for less. |
|
Compare two blocks objects for equality. |
|
Returns a const reference to the index of the block containing a point. |
Attributes¶
Returns the degree of a blocks object. |
|
Returns a hash value for a |
|
Check if a block is a transverse block. |
|
Returns the number of blocks in a |
|
Returns the number of transverse blocks. |
Iterators¶
Returns a const iterator pointing to the index of the first block. |
|
Returns a const iterator pointing to the first transverse block lookup. |
|
Returns a const iterator pointing one past-the-end of the last block. |
|
Returns a const iterator pointing to the first transverse block lookup. |