Bipartition¶
-
class Bipartition¶
Defined in
bipart.hpp
.A bipartition is a partition of the set \(\{0, ..., 2n - 1\}\) for some non-negative integer \(n\); see the Semigroups package for GAP documentation for more details. The Bipartition class is more complex (i.e. has more member functions) than are used in
libsemigroups
because they are used in the GAP package Semigroups package for GAP.
Member types¶
Type for const iterators pointing to the lookup for the blocks of a bipartition. |
|
Type for iterators pointing to the lookup for the blocks of a bipartition. |
|
Type for iterators pointing to the lookup for transverse blocks of a bipartition. |
Constructors¶
Constructs an uninitialised bipartition of degree |
|
Default copy constructor. |
|
Default move constructor. |
|
Constructs an uninitialised bipartition of given degree. |
|
|
None |
Constructs a bipartition from an initializer list blocks lookup. |
|
Constructs a bipartition from a const reference to blocks lookup. |
|
Constructs a bipartition from an rvalue reference to blocks lookup. |
|
Default copy assignment operator. |
|
Default move assignment operator. |
Static member functions¶
Returns an identity bipartition. |
|
Validates the arguments, constructs a bipartition and validates it. |
|
|
None |
Validates the arguments, constructs a bipartition and validates it. |
Operators¶
Compare two bipartitions for less. |
|
Compare two bipartitions for equality. |
|
|
Modify the current bipartition in-place to contain the product of two bipartitions. |
Accessors¶
Returns a reference to the index of the block containing a value. |
|
Returns a const reference to the index of the block containing a value. |
|
Returns the index of the block containing a value. |
|
Returns the index of the block containing a value. |
Iterators¶
Returns a const iterator pointing to the index of the first block. |
|
Returns a const iterator pointing to the index of the first left block. |
|
Returns a const iterator pointing to the first transverse block lookup. |
|
Returns a const iterator pointing to the index of the first right block. |
|
Returns a const iterator pointing one passed the last index of the last block. |
|
Returns a const iterator pointing one passed the last index of the last left block. |
|
Returns a const iterator pointing to the first transverse block lookup. |
|
Returns a const iterator pointing one passed the last index of the last right block. |
Getters¶
Returns the degree of the bipartition. |
|
Returns a hash value. |
|
Returns an identity bipartition. |
|
Check if a block is a transverse block. |
|
Return a pointer to the left blocks of a bipartition. |
|
Returns the number of blocks in a |
|
Returns the number of blocks containing a positive integer. |
|
Returns the number of blocks containing a negative integer. |
|
Returns the number of transverse blocks. |
|
Return a pointer to the right blocks of a bipartition. |
Setters¶
Set the number of blocks. |
|
Set the number of left blocks. |
|
Set the rank. |