@@ -51,11 +51,11 @@ namespace py = pybind11;
5151
5252namespace libsemigroups {
5353 using rule_type = FpSemigroupInterface::rule_type;
54- void init_fpsemi (py::module & m) {
54+ void init_fpsemi (py::module & m) {
5555 py::class_<FpSemigroup>(m, " FpSemigroup" )
5656 .def (py::init<>())
5757 .def (py::init<std::shared_ptr<FroidurePinBase>>())
58- .def (py::init<FpSemigroup const &>())
58+ .def (py::init<FpSemigroup const &>())
5959 .def (" validate_letter" ,
6060 py::overload_cast<char >(&FpSemigroup::validate_letter, py::const_),
6161 py::arg (" c" ),
@@ -78,8 +78,8 @@ namespace libsemigroups {
7878 :Returns: (None)
7979 )pbdoc" )
8080 .def (" validate_word" ,
81- py::overload_cast<word_type const &>(&FpSemigroup::validate_word,
82- py::const_),
81+ py::overload_cast<word_type const &>(&FpSemigroup::validate_word,
82+ py::const_),
8383 py::arg (" w" ),
8484 R"pbdoc(
8585 Validates a word.
@@ -89,8 +89,8 @@ namespace libsemigroups {
8989 :Returns: (None)
9090 )pbdoc" )
9191 .def (" validate_word" ,
92- py::overload_cast<std::string const &>(&FpSemigroup::validate_word,
93- py::const_),
92+ py::overload_cast<std::string const &>(&FpSemigroup::validate_word,
93+ py::const_),
9494 py::arg (" w" ),
9595 R"pbdoc(
9696 Validates a word.
@@ -110,7 +110,7 @@ namespace libsemigroups {
110110 :Returns: (None)
111111 )pbdoc" )
112112 .def (" set_alphabet" ,
113- py::overload_cast<std::string const &>(&FpSemigroup::set_alphabet),
113+ py::overload_cast<std::string const &>(&FpSemigroup::set_alphabet),
114114 py::arg (" a" ),
115115 R"pbdoc(
116116 Set the alphabet of the finitely presented semigroup.
@@ -152,7 +152,7 @@ namespace libsemigroups {
152152 :Returns: (None)
153153 )pbdoc" )
154154 .def (" set_identity" ,
155- py::overload_cast<std::string const &>(&FpSemigroup::set_identity),
155+ py::overload_cast<std::string const &>(&FpSemigroup::set_identity),
156156 py::arg (" id" ),
157157 R"pbdoc(
158158 Set a string of length 1 belonging to
@@ -210,7 +210,7 @@ namespace libsemigroups {
210210 :Returns: (None)
211211 )pbdoc" )
212212 .def (" add_rule" ,
213- py::overload_cast<std::string const &, std::string const &>(
213+ py::overload_cast<std::string const &, std::string const &>(
214214 &FpSemigroup::add_rule),
215215 py::arg (" u" ),
216216 py::arg (" v" ),
@@ -223,7 +223,7 @@ namespace libsemigroups {
223223 :Returns: (None)
224224 )pbdoc" )
225225 .def (" add_rule" ,
226- py::overload_cast<word_type const &, word_type const &>(
226+ py::overload_cast<word_type const &, word_type const &>(
227227 &FpSemigroup::add_rule),
228228 py::arg (" u" ),
229229 py::arg (" v" ),
@@ -236,7 +236,7 @@ namespace libsemigroups {
236236 :Returns: (None)
237237 )pbdoc" )
238238 .def (" add_rules" ,
239- py::overload_cast<FroidurePinBase &>(&FpSemigroup::add_rules),
239+ py::overload_cast<FroidurePinBase&>(&FpSemigroup::add_rules),
240240 py::arg (" S" ),
241241 R"pbdoc(
242242 Add the rules of a finite presentation for S to this.
@@ -246,7 +246,7 @@ namespace libsemigroups {
246246 :Returns: (None)
247247 )pbdoc" )
248248 .def (" add_rules" ,
249- py::overload_cast<std::vector<rule_type> const &>(
249+ py::overload_cast<std::vector<rule_type> const &>(
250250 &FpSemigroup::add_rules),
251251 py::arg (" rels" ),
252252 R"pbdoc(
@@ -259,7 +259,7 @@ namespace libsemigroups {
259259 )pbdoc" )
260260 .def (
261261 " number_of_rules" ,
262- [](FpSemigroup const & fp) { return fp.number_of_rules (); },
262+ [](FpSemigroup const & fp) { return fp.number_of_rules (); },
263263 R"pbdoc(
264264 Returns the number of rules currently used to define the
265265 finitely presented semigroups.
@@ -317,7 +317,7 @@ namespace libsemigroups {
317317 :Returns: (None)
318318 )pbdoc" )
319319 .def (" run_until" ,
320- (void (FpSemigroup::*)(std::function<bool ()> &))
320+ (void (FpSemigroup::*)(std::function<bool ()>&))
321321 & Runner::run_until,
322322 py::arg (" func" ),
323323 R"pbdoc(
@@ -366,7 +366,7 @@ namespace libsemigroups {
366366 )pbdoc" )
367367 .def (
368368 " running" ,
369- [](FpSemigroup const & fp) { return fp.running (); },
369+ [](FpSemigroup const & fp) { return fp.running (); },
370370 R"pbdoc(
371371 Check if the algorithm is currently running.
372372
@@ -382,7 +382,7 @@ namespace libsemigroups {
382382 :return: A ``bool``.
383383 )pbdoc" )
384384 .def (" normal_form" ,
385- py::overload_cast<std::string const &>(&FpSemigroup::normal_form),
385+ py::overload_cast<std::string const &>(&FpSemigroup::normal_form),
386386 py::arg (" w" ),
387387 R"pbdoc(
388388 Returns a normal form for a string.
@@ -392,7 +392,7 @@ namespace libsemigroups {
392392 :Returns: A string.
393393 )pbdoc" )
394394 .def (" normal_form" ,
395- py::overload_cast<word_type const &>(&FpSemigroup::normal_form),
395+ py::overload_cast<word_type const &>(&FpSemigroup::normal_form),
396396 py::arg (" w" ),
397397 R"pbdoc(
398398 Returns a normal form for a list of integers.
@@ -402,7 +402,7 @@ namespace libsemigroups {
402402 :Returns: A list of integers.
403403 )pbdoc" )
404404 .def (" equal_to" ,
405- py::overload_cast<std::string const &, std::string const &>(
405+ py::overload_cast<std::string const &, std::string const &>(
406406 &FpSemigroup::equal_to),
407407 py::arg (" u" ),
408408 py::arg (" v" ),
@@ -415,7 +415,7 @@ namespace libsemigroups {
415415 :Returns: ``True`` if the strings ``u`` and ``v`` represent the same element of the finitely presented semigroup, and ``False`` otherwise.
416416 )pbdoc" )
417417 .def (" equal_to" ,
418- py::overload_cast<word_type const &, word_type const &>(
418+ py::overload_cast<word_type const &, word_type const &>(
419419 &FpSemigroup::equal_to),
420420 py::arg (" u" ),
421421 py::arg (" v" ),
@@ -477,7 +477,7 @@ namespace libsemigroups {
477477 )pbdoc" )
478478 .def (
479479 " has_froidure_pin" ,
480- [](FpSemigroup const & x) { return x.has_froidure_pin (); },
480+ [](FpSemigroup const & x) { return x.has_froidure_pin (); },
481481 R"pbdoc(
482482 Returns True if a ``FroidurePin`` instance isomorphic to the
483483 finitely presented semigroup has already been
@@ -487,7 +487,7 @@ namespace libsemigroups {
487487 )pbdoc" )
488488 .def (
489489 " froidure_pin" ,
490- [](FpSemigroup & x) { return x.froidure_pin (); },
490+ [](FpSemigroup& x) { return x.froidure_pin (); },
491491 R"pbdoc(
492492 Returns a ``FroidurePin`` instance isomorphic to the finitely
493493 presented semigroup.
@@ -554,7 +554,7 @@ namespace libsemigroups {
554554 )pbdoc" )
555555 .def (
556556 " rules" ,
557- [](FpSemigroup const & fp) {
557+ [](FpSemigroup const & fp) {
558558 return py::make_iterator (fp.cbegin_rules (), fp.cend_rules ());
559559 },
560560 R"pbdoc(
0 commit comments