@@ -569,7 +569,7 @@ The functionality described on this page is only available if
569569
570570 thing.def (
571571 " __mul__" ,
572- // The next line is not a type , but is consistent with the
572+ // The next line is not a typo , but is consistent with the
573573 // other transformations in libsemigroups_pybind11, since
574574 // function composition in HPCombi is backwards.
575575 [](PTransf16 const & x, PTransf16 const & y) { return y * x; },
@@ -1227,6 +1227,16 @@ The functionality described on this page is only available if
12271227
12281228 thing.def (" __copy__" , [](Transf16 const & v) { return Transf16 (v); });
12291229
1230+ thing.def (
1231+ " __mul__" ,
1232+ // The next line is not a typo, but is consistent with the
1233+ // other transformations in libsemigroups_pybind11, since
1234+ // function composition in HPCombi is backwards.
1235+ // Also this method is required because the return type of the one for
1236+ // PTransf16 is always PTransf16.
1237+ [](Transf16 const & x, Transf16 const & y) { return y * x; },
1238+ py::is_operator ());
1239+
12301240 // //////////////////////////////////////////////////////////////////////
12311241 // Constructors
12321242 // //////////////////////////////////////////////////////////////////////
@@ -1415,6 +1425,16 @@ The functionality described on this page is only available if
14151425 thing.def (" __repr__" ,
14161426 [](Perm16 const & self) { return repr (self, " Perm16" ); });
14171427
1428+ thing.def (
1429+ " __mul__" ,
1430+ // The next line is not a typo, but is consistent with the
1431+ // other transformations in libsemigroups_pybind11, since
1432+ // function composition in HPCombi is backwards.
1433+ // Also this method is required because the return type of the one for
1434+ // PTransf16 is always PTransf16.
1435+ [](Perm16 const & x, Perm16 const & y) { return y * x; },
1436+ py::is_operator ());
1437+
14181438 // //////////////////////////////////////////////////////////////////////
14191439 // Static methods
14201440 // //////////////////////////////////////////////////////////////////////
@@ -2157,6 +2177,16 @@ The functionality described on this page is only available if
21572177 " 'PPerm16' and 'int" );
21582178 });
21592179
2180+ thing.def (
2181+ " __mul__" ,
2182+ // The next line is not a typo, but is consistent with the
2183+ // other transformations in libsemigroups_pybind11, since
2184+ // function composition in HPCombi is backwards.
2185+ // Also this method is required because the return type of the one for
2186+ // PTransf16 is always PTransf16.
2187+ [](PPerm16 const & x, PPerm16 const & y) { return y * x; },
2188+ py::is_operator ());
2189+
21602190 // //////////////////////////////////////////////////////////////////////
21612191 // Static methods
21622192 // //////////////////////////////////////////////////////////////////////
0 commit comments