Skip to content

Commit e9f748a

Browse files
Konieczny: add example to doc
1 parent f9baa21 commit e9f748a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

include/libsemigroups/konieczny.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ namespace libsemigroups {
6161
//! from a finite over-monoid which acts on sets on the left and on the right
6262
//! in an appropriate way. The prototypical example, as described by
6363
//! %Konieczny, is the monoid of boolean matrices.
64+
//!
65+
//! \code
66+
//! using namespace libsemigroups;
67+
//! const std::vector<BMat8> reg_bmat4_gens
68+
//! = {BMat8({{0, 1, 0, 0}, {1, 0, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}),
69+
//! BMat8({{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, 0, 0, 0}}),
70+
//! BMat8({{1, 0, 0, 0}, {1, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}),
71+
//! BMat8({{0, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}})};
72+
//! Konieczny<BMat8> S(reg_bmat4_gens);
73+
//! S.size(); // returns 63904
74+
//! S.number_of_idempotents(); //returns 2360
75+
//! \endcode
6476

6577
//! \ingroup konieczny_group
6678
//!

0 commit comments

Comments
 (0)