passagemath-gap-pkg-semigroups 10.6.29__cp312-abi3-macosx_13_0_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of passagemath-gap-pkg-semigroups might be problematic. Click here for more details.

Files changed (354) hide show
  1. gap/pkg/semigroups/CHANGELOG.md +1699 -0
  2. gap/pkg/semigroups/CONTRIBUTING.md +91 -0
  3. gap/pkg/semigroups/GNUmakefile +110 -0
  4. gap/pkg/semigroups/GNUmakefile.in +110 -0
  5. gap/pkg/semigroups/GPL +674 -0
  6. gap/pkg/semigroups/LICENSE +16 -0
  7. gap/pkg/semigroups/Makefile +26 -0
  8. gap/pkg/semigroups/Makefile.gappkg +225 -0
  9. gap/pkg/semigroups/PackageInfo.g +529 -0
  10. gap/pkg/semigroups/README.md +102 -0
  11. gap/pkg/semigroups/VERSIONS +112 -0
  12. gap/pkg/semigroups/aclocal.m4 +375 -0
  13. gap/pkg/semigroups/autogen.sh +25 -0
  14. gap/pkg/semigroups/bin/x86_64-apple-darwin22-default64-kv10/semigroups.so +0 -0
  15. gap/pkg/semigroups/config.guess +1807 -0
  16. gap/pkg/semigroups/config.log +1082 -0
  17. gap/pkg/semigroups/config.status +1134 -0
  18. gap/pkg/semigroups/config.sub +1960 -0
  19. gap/pkg/semigroups/configure +9742 -0
  20. gap/pkg/semigroups/configure.ac +71 -0
  21. gap/pkg/semigroups/data/doc/greens.pickle +1 -0
  22. gap/pkg/semigroups/data/gens/fullbool-8.pickle.gz +0 -0
  23. gap/pkg/semigroups/data/gens/fullbool.pickle.gz +0 -0
  24. gap/pkg/semigroups/data/gens/hall.pickle.gz +0 -0
  25. gap/pkg/semigroups/data/gens/reflex-6.pickle.gz +0 -0
  26. gap/pkg/semigroups/data/gens/reflex.pickle.gz +0 -0
  27. gap/pkg/semigroups/data/tst/bipart4 +10 -0
  28. gap/pkg/semigroups/data/tst/pperm10 +1 -0
  29. gap/pkg/semigroups/data/tst/tables.gz +0 -0
  30. gap/pkg/semigroups/data/tst/testdata +1 -0
  31. gap/pkg/semigroups/data/tst/testinstall.pickle +1 -0
  32. gap/pkg/semigroups/data/tst/trans3 +7 -0
  33. gap/pkg/semigroups/data/tst/trans3-old +7 -0
  34. gap/pkg/semigroups/environment.yml +7 -0
  35. gap/pkg/semigroups/gap/attributes/acting.gd +15 -0
  36. gap/pkg/semigroups/gap/attributes/acting.gi +297 -0
  37. gap/pkg/semigroups/gap/attributes/attr.gd +91 -0
  38. gap/pkg/semigroups/gap/attributes/attr.gi +1214 -0
  39. gap/pkg/semigroups/gap/attributes/dual.gd +25 -0
  40. gap/pkg/semigroups/gap/attributes/dual.gi +209 -0
  41. gap/pkg/semigroups/gap/attributes/factor.gd +17 -0
  42. gap/pkg/semigroups/gap/attributes/factor.gi +453 -0
  43. gap/pkg/semigroups/gap/attributes/homomorph.gd +84 -0
  44. gap/pkg/semigroups/gap/attributes/homomorph.gi +591 -0
  45. gap/pkg/semigroups/gap/attributes/inverse.gd +38 -0
  46. gap/pkg/semigroups/gap/attributes/inverse.gi +708 -0
  47. gap/pkg/semigroups/gap/attributes/isomorph.gd +16 -0
  48. gap/pkg/semigroups/gap/attributes/isomorph.gi +377 -0
  49. gap/pkg/semigroups/gap/attributes/isorms.gd +49 -0
  50. gap/pkg/semigroups/gap/attributes/isorms.gi +1383 -0
  51. gap/pkg/semigroups/gap/attributes/maximal.gd +16 -0
  52. gap/pkg/semigroups/gap/attributes/maximal.gi +1876 -0
  53. gap/pkg/semigroups/gap/attributes/properties.gd +109 -0
  54. gap/pkg/semigroups/gap/attributes/properties.gi +1658 -0
  55. gap/pkg/semigroups/gap/attributes/rms-translat.gd +39 -0
  56. gap/pkg/semigroups/gap/attributes/rms-translat.gi +1078 -0
  57. gap/pkg/semigroups/gap/attributes/semifp.gd +12 -0
  58. gap/pkg/semigroups/gap/attributes/semifp.gi +84 -0
  59. gap/pkg/semigroups/gap/attributes/translat.gd +474 -0
  60. gap/pkg/semigroups/gap/attributes/translat.gi +1779 -0
  61. gap/pkg/semigroups/gap/congruences/cong.gd +154 -0
  62. gap/pkg/semigroups/gap/congruences/cong.gi +351 -0
  63. gap/pkg/semigroups/gap/congruences/conginv.gd +38 -0
  64. gap/pkg/semigroups/gap/congruences/conginv.gi +589 -0
  65. gap/pkg/semigroups/gap/congruences/conglatt.gd +101 -0
  66. gap/pkg/semigroups/gap/congruences/conglatt.gi +886 -0
  67. gap/pkg/semigroups/gap/congruences/congpairs.gd +21 -0
  68. gap/pkg/semigroups/gap/congruences/congpairs.gi +272 -0
  69. gap/pkg/semigroups/gap/congruences/congpart.gd +90 -0
  70. gap/pkg/semigroups/gap/congruences/congpart.gi +449 -0
  71. gap/pkg/semigroups/gap/congruences/congrees.gd +20 -0
  72. gap/pkg/semigroups/gap/congruences/congrees.gi +313 -0
  73. gap/pkg/semigroups/gap/congruences/congrms.gd +54 -0
  74. gap/pkg/semigroups/gap/congruences/congrms.gi +1467 -0
  75. gap/pkg/semigroups/gap/congruences/congsemigraph.gd +28 -0
  76. gap/pkg/semigroups/gap/congruences/congsemigraph.gi +289 -0
  77. gap/pkg/semigroups/gap/congruences/congsimple.gd +27 -0
  78. gap/pkg/semigroups/gap/congruences/congsimple.gi +236 -0
  79. gap/pkg/semigroups/gap/congruences/conguniv.gd +20 -0
  80. gap/pkg/semigroups/gap/congruences/conguniv.gi +271 -0
  81. gap/pkg/semigroups/gap/congruences/congwordgraph.gd +21 -0
  82. gap/pkg/semigroups/gap/congruences/congwordgraph.gi +250 -0
  83. gap/pkg/semigroups/gap/elements/bipart.gd +71 -0
  84. gap/pkg/semigroups/gap/elements/bipart.gi +995 -0
  85. gap/pkg/semigroups/gap/elements/blocks.gd +31 -0
  86. gap/pkg/semigroups/gap/elements/blocks.gi +134 -0
  87. gap/pkg/semigroups/gap/elements/boolmat.gd +74 -0
  88. gap/pkg/semigroups/gap/elements/boolmat.gi +726 -0
  89. gap/pkg/semigroups/gap/elements/elements.gd +11 -0
  90. gap/pkg/semigroups/gap/elements/elements.gi +121 -0
  91. gap/pkg/semigroups/gap/elements/ffmat.gd +71 -0
  92. gap/pkg/semigroups/gap/elements/ffmat.gi +311 -0
  93. gap/pkg/semigroups/gap/elements/maxplusmat.gd +131 -0
  94. gap/pkg/semigroups/gap/elements/maxplusmat.gi +782 -0
  95. gap/pkg/semigroups/gap/elements/pbr.gd +51 -0
  96. gap/pkg/semigroups/gap/elements/pbr.gi +740 -0
  97. gap/pkg/semigroups/gap/elements/pperm.gd +11 -0
  98. gap/pkg/semigroups/gap/elements/pperm.gi +14 -0
  99. gap/pkg/semigroups/gap/elements/semiringmat.gd +136 -0
  100. gap/pkg/semigroups/gap/elements/semiringmat.gi +717 -0
  101. gap/pkg/semigroups/gap/elements/star.gd +21 -0
  102. gap/pkg/semigroups/gap/elements/star.gi +21 -0
  103. gap/pkg/semigroups/gap/elements/trans.gd +13 -0
  104. gap/pkg/semigroups/gap/elements/trans.gi +50 -0
  105. gap/pkg/semigroups/gap/fp/freeband.gd +22 -0
  106. gap/pkg/semigroups/gap/fp/freeband.gi +502 -0
  107. gap/pkg/semigroups/gap/fp/freeinverse.gd +30 -0
  108. gap/pkg/semigroups/gap/fp/freeinverse.gi +465 -0
  109. gap/pkg/semigroups/gap/fp/tietze.gd +89 -0
  110. gap/pkg/semigroups/gap/fp/tietze.gi +1578 -0
  111. gap/pkg/semigroups/gap/fp/word.gd +15 -0
  112. gap/pkg/semigroups/gap/fp/word.gi +67 -0
  113. gap/pkg/semigroups/gap/greens/acting-inverse.gi +774 -0
  114. gap/pkg/semigroups/gap/greens/acting-regular.gi +553 -0
  115. gap/pkg/semigroups/gap/greens/acting.gd +81 -0
  116. gap/pkg/semigroups/gap/greens/acting.gi +2433 -0
  117. gap/pkg/semigroups/gap/greens/froidure-pin.gd +25 -0
  118. gap/pkg/semigroups/gap/greens/froidure-pin.gi +741 -0
  119. gap/pkg/semigroups/gap/greens/generic.gd +117 -0
  120. gap/pkg/semigroups/gap/greens/generic.gi +630 -0
  121. gap/pkg/semigroups/gap/ideals/acting.gd +17 -0
  122. gap/pkg/semigroups/gap/ideals/acting.gi +1155 -0
  123. gap/pkg/semigroups/gap/ideals/froidure-pin.gd +11 -0
  124. gap/pkg/semigroups/gap/ideals/froidure-pin.gi +105 -0
  125. gap/pkg/semigroups/gap/ideals/ideals.gd +45 -0
  126. gap/pkg/semigroups/gap/ideals/ideals.gi +442 -0
  127. gap/pkg/semigroups/gap/ideals/lambda-rho.gd +16 -0
  128. gap/pkg/semigroups/gap/ideals/lambda-rho.gi +614 -0
  129. gap/pkg/semigroups/gap/libsemigroups/cong.gd +24 -0
  130. gap/pkg/semigroups/gap/libsemigroups/cong.gi +431 -0
  131. gap/pkg/semigroups/gap/libsemigroups/fpsemi.gd +16 -0
  132. gap/pkg/semigroups/gap/libsemigroups/fpsemi.gi +53 -0
  133. gap/pkg/semigroups/gap/libsemigroups/froidure-pin.gd +17 -0
  134. gap/pkg/semigroups/gap/libsemigroups/froidure-pin.gi +945 -0
  135. gap/pkg/semigroups/gap/libsemigroups/sims1.gd +38 -0
  136. gap/pkg/semigroups/gap/libsemigroups/sims1.gi +308 -0
  137. gap/pkg/semigroups/gap/main/acting.gd +36 -0
  138. gap/pkg/semigroups/gap/main/acting.gi +779 -0
  139. gap/pkg/semigroups/gap/main/froidure-pin.gd +72 -0
  140. gap/pkg/semigroups/gap/main/froidure-pin.gi +655 -0
  141. gap/pkg/semigroups/gap/main/graded.gd +26 -0
  142. gap/pkg/semigroups/gap/main/graded.gi +355 -0
  143. gap/pkg/semigroups/gap/main/lambda-rho.gd +29 -0
  144. gap/pkg/semigroups/gap/main/lambda-rho.gi +514 -0
  145. gap/pkg/semigroups/gap/main/orbits.gd +24 -0
  146. gap/pkg/semigroups/gap/main/orbits.gi +512 -0
  147. gap/pkg/semigroups/gap/main/semiact.gd +20 -0
  148. gap/pkg/semigroups/gap/main/semiact.gi +821 -0
  149. gap/pkg/semigroups/gap/main/setup.gd +61 -0
  150. gap/pkg/semigroups/gap/main/setup.gi +1094 -0
  151. gap/pkg/semigroups/gap/obsolete.gd +9 -0
  152. gap/pkg/semigroups/gap/obsolete.gi +14 -0
  153. gap/pkg/semigroups/gap/options.g +55 -0
  154. gap/pkg/semigroups/gap/semigroups/grpperm.gd +12 -0
  155. gap/pkg/semigroups/gap/semigroups/grpperm.gi +177 -0
  156. gap/pkg/semigroups/gap/semigroups/semibipart.gd +28 -0
  157. gap/pkg/semigroups/gap/semigroups/semibipart.gi +570 -0
  158. gap/pkg/semigroups/gap/semigroups/semiboolmat.gd +20 -0
  159. gap/pkg/semigroups/gap/semigroups/semiboolmat.gi +104 -0
  160. gap/pkg/semigroups/gap/semigroups/semicons.gd +52 -0
  161. gap/pkg/semigroups/gap/semigroups/semicons.gi +1194 -0
  162. gap/pkg/semigroups/gap/semigroups/semidp.gd +13 -0
  163. gap/pkg/semigroups/gap/semigroups/semidp.gi +509 -0
  164. gap/pkg/semigroups/gap/semigroups/semieunit.gd +126 -0
  165. gap/pkg/semigroups/gap/semigroups/semieunit.gi +889 -0
  166. gap/pkg/semigroups/gap/semigroups/semiex.gd +104 -0
  167. gap/pkg/semigroups/gap/semigroups/semiex.gi +1590 -0
  168. gap/pkg/semigroups/gap/semigroups/semiffmat.gd +37 -0
  169. gap/pkg/semigroups/gap/semigroups/semiffmat.gi +565 -0
  170. gap/pkg/semigroups/gap/semigroups/semifp.gd +28 -0
  171. gap/pkg/semigroups/gap/semigroups/semifp.gi +1364 -0
  172. gap/pkg/semigroups/gap/semigroups/semigraph.gd +40 -0
  173. gap/pkg/semigroups/gap/semigroups/semigraph.gi +292 -0
  174. gap/pkg/semigroups/gap/semigroups/semigrp.gd +165 -0
  175. gap/pkg/semigroups/gap/semigroups/semigrp.gi +1225 -0
  176. gap/pkg/semigroups/gap/semigroups/semimaxplus.gd +72 -0
  177. gap/pkg/semigroups/gap/semigroups/semimaxplus.gi +710 -0
  178. gap/pkg/semigroups/gap/semigroups/semintmat.gd +13 -0
  179. gap/pkg/semigroups/gap/semigroups/semintmat.gi +74 -0
  180. gap/pkg/semigroups/gap/semigroups/semipbr.gd +19 -0
  181. gap/pkg/semigroups/gap/semigroups/semipbr.gi +139 -0
  182. gap/pkg/semigroups/gap/semigroups/semipperm.gd +27 -0
  183. gap/pkg/semigroups/gap/semigroups/semipperm.gi +711 -0
  184. gap/pkg/semigroups/gap/semigroups/semiquo.gd +14 -0
  185. gap/pkg/semigroups/gap/semigroups/semiquo.gi +97 -0
  186. gap/pkg/semigroups/gap/semigroups/semiringmat.gd +16 -0
  187. gap/pkg/semigroups/gap/semigroups/semiringmat.gi +21 -0
  188. gap/pkg/semigroups/gap/semigroups/semirms.gd +19 -0
  189. gap/pkg/semigroups/gap/semigroups/semirms.gi +977 -0
  190. gap/pkg/semigroups/gap/semigroups/semitrans.gd +49 -0
  191. gap/pkg/semigroups/gap/semigroups/semitrans.gi +909 -0
  192. gap/pkg/semigroups/gap/tools/display.gd +24 -0
  193. gap/pkg/semigroups/gap/tools/display.gi +749 -0
  194. gap/pkg/semigroups/gap/tools/io.gd +17 -0
  195. gap/pkg/semigroups/gap/tools/io.gi +543 -0
  196. gap/pkg/semigroups/gap/tools/iterators.gd +16 -0
  197. gap/pkg/semigroups/gap/tools/iterators.gi +253 -0
  198. gap/pkg/semigroups/gap/tools/utils.gd +19 -0
  199. gap/pkg/semigroups/gap/tools/utils.gi +756 -0
  200. gap/pkg/semigroups/gapbind14/.ccls +18 -0
  201. gap/pkg/semigroups/gapbind14/.clang-format +104 -0
  202. gap/pkg/semigroups/gapbind14/CPPLINT.cfg +5 -0
  203. gap/pkg/semigroups/gapbind14/LICENSE +674 -0
  204. gap/pkg/semigroups/gapbind14/README.md +76 -0
  205. gap/pkg/semigroups/gapbind14/demo/.gitignore +4 -0
  206. gap/pkg/semigroups/gapbind14/demo/LICENSE +293 -0
  207. gap/pkg/semigroups/gapbind14/demo/Makefile.gappkg +220 -0
  208. gap/pkg/semigroups/gapbind14/demo/Makefile.in +19 -0
  209. gap/pkg/semigroups/gapbind14/demo/PackageInfo.g +87 -0
  210. gap/pkg/semigroups/gapbind14/demo/README.md +17 -0
  211. gap/pkg/semigroups/gapbind14/demo/configure +34 -0
  212. gap/pkg/semigroups/gapbind14/demo/gap/gapbind_demo.gd +19 -0
  213. gap/pkg/semigroups/gapbind14/demo/gap/gapbind_demo.gi +10 -0
  214. gap/pkg/semigroups/gapbind14/demo/init.g +16 -0
  215. gap/pkg/semigroups/gapbind14/demo/makedoc.g +10 -0
  216. gap/pkg/semigroups/gapbind14/demo/read.g +6 -0
  217. gap/pkg/semigroups/gapbind14/demo/src/gapbind_demo.cc +142 -0
  218. gap/pkg/semigroups/gapbind14/demo/tst/testall.g +12 -0
  219. gap/pkg/semigroups/gapbind14/include/gapbind14/cpp_fn.hpp +223 -0
  220. gap/pkg/semigroups/gapbind14/include/gapbind14/gap_include.hpp +26 -0
  221. gap/pkg/semigroups/gapbind14/include/gapbind14/gapbind14.hpp +445 -0
  222. gap/pkg/semigroups/gapbind14/include/gapbind14/tame_free_fn.hpp +420 -0
  223. gap/pkg/semigroups/gapbind14/include/gapbind14/tame_mem_fn.hpp +556 -0
  224. gap/pkg/semigroups/gapbind14/include/gapbind14/to_cpp.hpp +162 -0
  225. gap/pkg/semigroups/gapbind14/include/gapbind14/to_gap.hpp +158 -0
  226. gap/pkg/semigroups/gapbind14/src/.clang-format +108 -0
  227. gap/pkg/semigroups/gapbind14/src/gapbind14.cpp +334 -0
  228. gap/pkg/semigroups/init.g +150 -0
  229. gap/pkg/semigroups/m4/ax_append_flag.m4 +50 -0
  230. gap/pkg/semigroups/m4/ax_check_compile_flag.m4 +53 -0
  231. gap/pkg/semigroups/m4/ax_check_hpcombi.m4 +121 -0
  232. gap/pkg/semigroups/m4/ax_check_libsemigroup.m4 +68 -0
  233. gap/pkg/semigroups/m4/ax_compare_version.m4 +177 -0
  234. gap/pkg/semigroups/m4/ax_cxx_compile_stdcxx.m4 +1009 -0
  235. gap/pkg/semigroups/m4/ax_cxx_compile_stdcxx_14.m4 +34 -0
  236. gap/pkg/semigroups/m4/ax_prefix_config_h.m4 +203 -0
  237. gap/pkg/semigroups/m4/ax_pthread.m4 +522 -0
  238. gap/pkg/semigroups/m4/find_gap.m4 +94 -0
  239. gap/pkg/semigroups/makedoc.g +153 -0
  240. gap/pkg/semigroups/prerequisites.sh +62 -0
  241. gap/pkg/semigroups/read.g +105 -0
  242. gap/pkg/semigroups/release.toml +6 -0
  243. gap/pkg/semigroups/tst/extreme/README +2 -0
  244. gap/pkg/semigroups/tst/extreme/attrinv.tst +703 -0
  245. gap/pkg/semigroups/tst/extreme/bipart.tst +2803 -0
  246. gap/pkg/semigroups/tst/extreme/closure.tst +652 -0
  247. gap/pkg/semigroups/tst/extreme/cong.tst +286 -0
  248. gap/pkg/semigroups/tst/extreme/conginv.tst +43 -0
  249. gap/pkg/semigroups/tst/extreme/examples.tst +2449 -0
  250. gap/pkg/semigroups/tst/extreme/freeband.tst +37 -0
  251. gap/pkg/semigroups/tst/extreme/greens-acting-regular.tst +27 -0
  252. gap/pkg/semigroups/tst/extreme/greens-acting.tst +1999 -0
  253. gap/pkg/semigroups/tst/extreme/ideals.tst +858 -0
  254. gap/pkg/semigroups/tst/extreme/inverse.tst +1025 -0
  255. gap/pkg/semigroups/tst/extreme/maximal.tst +856 -0
  256. gap/pkg/semigroups/tst/extreme/misc.tst +4236 -0
  257. gap/pkg/semigroups/tst/extreme/monoid_pkg.tst +1488 -0
  258. gap/pkg/semigroups/tst/extreme/properties.tst +914 -0
  259. gap/pkg/semigroups/tst/extreme/semibipart.tst +2837 -0
  260. gap/pkg/semigroups/tst/extreme/semieunit.tst +49 -0
  261. gap/pkg/semigroups/tst/extreme/semiffmat.tst +353 -0
  262. gap/pkg/semigroups/tst/extreme/semigroups.tst +245 -0
  263. gap/pkg/semigroups/tst/extreme/semiiter.tst +58 -0
  264. gap/pkg/semigroups/tst/extreme/semirms.tst +1091 -0
  265. gap/pkg/semigroups/tst/extreme/transform.tst +305 -0
  266. gap/pkg/semigroups/tst/extreme/translat.tst +44 -0
  267. gap/pkg/semigroups/tst/standard/README +2 -0
  268. gap/pkg/semigroups/tst/standard/attributes/acting.tst +388 -0
  269. gap/pkg/semigroups/tst/standard/attributes/attr.tst +2404 -0
  270. gap/pkg/semigroups/tst/standard/attributes/dual.tst +308 -0
  271. gap/pkg/semigroups/tst/standard/attributes/factor.tst +629 -0
  272. gap/pkg/semigroups/tst/standard/attributes/homomorph.tst +1134 -0
  273. gap/pkg/semigroups/tst/standard/attributes/inverse.tst +1521 -0
  274. gap/pkg/semigroups/tst/standard/attributes/isomorph.tst +435 -0
  275. gap/pkg/semigroups/tst/standard/attributes/isorms.tst +1147 -0
  276. gap/pkg/semigroups/tst/standard/attributes/maximal.tst +853 -0
  277. gap/pkg/semigroups/tst/standard/attributes/properties.tst +2028 -0
  278. gap/pkg/semigroups/tst/standard/attributes/semifp.tst +53 -0
  279. gap/pkg/semigroups/tst/standard/attributes/translat.tst +796 -0
  280. gap/pkg/semigroups/tst/standard/congruences/cong.tst +1044 -0
  281. gap/pkg/semigroups/tst/standard/congruences/conginv.tst +292 -0
  282. gap/pkg/semigroups/tst/standard/congruences/conglatt.tst +421 -0
  283. gap/pkg/semigroups/tst/standard/congruences/congpairs.tst +1011 -0
  284. gap/pkg/semigroups/tst/standard/congruences/congrees.tst +288 -0
  285. gap/pkg/semigroups/tst/standard/congruences/congrms.tst +701 -0
  286. gap/pkg/semigroups/tst/standard/congruences/congsemigraph.tst +422 -0
  287. gap/pkg/semigroups/tst/standard/congruences/congsimple.tst +311 -0
  288. gap/pkg/semigroups/tst/standard/congruences/conguniv.tst +259 -0
  289. gap/pkg/semigroups/tst/standard/congruences/congwordgraph.tst +330 -0
  290. gap/pkg/semigroups/tst/standard/elements/bipart.tst +783 -0
  291. gap/pkg/semigroups/tst/standard/elements/blocks.tst +166 -0
  292. gap/pkg/semigroups/tst/standard/elements/boolmat.tst +608 -0
  293. gap/pkg/semigroups/tst/standard/elements/elements.tst +117 -0
  294. gap/pkg/semigroups/tst/standard/elements/ffmat.tst +349 -0
  295. gap/pkg/semigroups/tst/standard/elements/maxplusmat.tst +613 -0
  296. gap/pkg/semigroups/tst/standard/elements/pbr.tst +506 -0
  297. gap/pkg/semigroups/tst/standard/elements/pperm.tst +32 -0
  298. gap/pkg/semigroups/tst/standard/elements/semiringmat.tst +601 -0
  299. gap/pkg/semigroups/tst/standard/elements/trans.tst +58 -0
  300. gap/pkg/semigroups/tst/standard/fp/freeband.tst +311 -0
  301. gap/pkg/semigroups/tst/standard/fp/freeinverse.tst +147 -0
  302. gap/pkg/semigroups/tst/standard/fp/tietze.tst +780 -0
  303. gap/pkg/semigroups/tst/standard/fp/word.tst +106 -0
  304. gap/pkg/semigroups/tst/standard/greens/acting-inverse.tst +545 -0
  305. gap/pkg/semigroups/tst/standard/greens/acting-regular.tst +396 -0
  306. gap/pkg/semigroups/tst/standard/greens/acting.tst +2033 -0
  307. gap/pkg/semigroups/tst/standard/greens/froidure-pin.tst +1831 -0
  308. gap/pkg/semigroups/tst/standard/greens/generic.tst +1436 -0
  309. gap/pkg/semigroups/tst/standard/ideals/acting.tst +279 -0
  310. gap/pkg/semigroups/tst/standard/ideals/froidure-pin.tst +178 -0
  311. gap/pkg/semigroups/tst/standard/ideals/ideals.tst +380 -0
  312. gap/pkg/semigroups/tst/standard/libsemigroups/cong.tst +310 -0
  313. gap/pkg/semigroups/tst/standard/libsemigroups/froidure-pin.tst +778 -0
  314. gap/pkg/semigroups/tst/standard/libsemigroups/sims1.tst +379 -0
  315. gap/pkg/semigroups/tst/standard/main/acting.tst +411 -0
  316. gap/pkg/semigroups/tst/standard/main/froidure-pin.tst +392 -0
  317. gap/pkg/semigroups/tst/standard/main/semiact.tst +203 -0
  318. gap/pkg/semigroups/tst/standard/main/setup.tst +1144 -0
  319. gap/pkg/semigroups/tst/standard/obsolete.tst +19 -0
  320. gap/pkg/semigroups/tst/standard/options.tst +54 -0
  321. gap/pkg/semigroups/tst/standard/semigroups/grpperm.tst +581 -0
  322. gap/pkg/semigroups/tst/standard/semigroups/semibipart.tst +2635 -0
  323. gap/pkg/semigroups/tst/standard/semigroups/semiboolmat.tst +1871 -0
  324. gap/pkg/semigroups/tst/standard/semigroups/semicons.tst +1173 -0
  325. gap/pkg/semigroups/tst/standard/semigroups/semidp.tst +739 -0
  326. gap/pkg/semigroups/tst/standard/semigroups/semieunit.tst +339 -0
  327. gap/pkg/semigroups/tst/standard/semigroups/semiex.tst +2055 -0
  328. gap/pkg/semigroups/tst/standard/semigroups/semiffmat.tst +746 -0
  329. gap/pkg/semigroups/tst/standard/semigroups/semifp.tst +2702 -0
  330. gap/pkg/semigroups/tst/standard/semigroups/semigraph.tst +133 -0
  331. gap/pkg/semigroups/tst/standard/semigroups/semigrp.tst +1112 -0
  332. gap/pkg/semigroups/tst/standard/semigroups/semimaxplus.tst +654 -0
  333. gap/pkg/semigroups/tst/standard/semigroups/semipbr.tst +2142 -0
  334. gap/pkg/semigroups/tst/standard/semigroups/semipperm.tst +2169 -0
  335. gap/pkg/semigroups/tst/standard/semigroups/semiquo.tst +278 -0
  336. gap/pkg/semigroups/tst/standard/semigroups/semirms.tst +3010 -0
  337. gap/pkg/semigroups/tst/standard/semigroups/semitrans.tst +2758 -0
  338. gap/pkg/semigroups/tst/standard/tools/display.tst +1040 -0
  339. gap/pkg/semigroups/tst/standard/tools/io.tst +363 -0
  340. gap/pkg/semigroups/tst/testinstall.tst +1815 -0
  341. gap/pkg/semigroups/tst/teststandard.g +22 -0
  342. gap/pkg/semigroups/tst/workspaces/load-workspace.tst +142 -0
  343. gap/pkg/semigroups/tst/workspaces/load.g +11 -0
  344. gap/pkg/semigroups/tst/workspaces/save-workspace.tst +166 -0
  345. gap/pkg/semigroups/tst/workspaces/save.g +14 -0
  346. passagemath_gap_pkg_semigroups-10.6.29.dist-info/METADATA +93 -0
  347. passagemath_gap_pkg_semigroups-10.6.29.dist-info/METADATA.bak +94 -0
  348. passagemath_gap_pkg_semigroups-10.6.29.dist-info/RECORD +354 -0
  349. passagemath_gap_pkg_semigroups-10.6.29.dist-info/WHEEL +6 -0
  350. passagemath_gap_pkg_semigroups-10.6.29.dist-info/top_level.txt +1 -0
  351. passagemath_gap_pkg_semigroups.dylibs/libsemigroups.2.dylib +0 -0
  352. sage/all__sagemath_gap_pkg_semigroups.py +1 -0
  353. sage/libs/all__sagemath_gap_pkg_semigroups.py +1 -0
  354. sage/libs/gap_pkg_semigroups.abi3.so +0 -0
@@ -0,0 +1,76 @@
1
+ gapbind14
2
+ =========
3
+
4
+ `gapbind14` is an (almost) header-only library that exposes C++ types in GAP
5
+ and vice versa, mainly to create GAP bindings of existing C++ code. This
6
+ project was inspired by (and borrows some code from)
7
+ [pybind11](https://pybind11.readthedocs.io/en/latest/).
8
+ The aim is the same as that of
9
+ [pybind11](https://pybind11.readthedocs.io/en/latest/): to minimize boilerplate
10
+ code in GAP extension modules by inferring type information using
11
+ compile-time introspection.
12
+
13
+ This is a work in progress, it probably contains some terrible design decisions
14
+ and bugs, and is probably missing many obvious features.
15
+
16
+ Here's an example of how `gapbind14` can be used (this is actual code used in
17
+ the kernel module of the [Semigroups](https://semigroups.github.io/Semigroups)
18
+ package for GAP.
19
+
20
+ ```c++
21
+ GAPBIND14_MODULE(libsemigroups, m);
22
+
23
+ using libsemigroups::Congruence;
24
+ using libsemigroups::congruence_type;
25
+ using libsemigroups::FroidurePinBase;
26
+ using libsemigroups::word_type;
27
+
28
+ auto congruence_init
29
+ = gapbind14::init<Congruence, congruence_type, FroidurePinBMat const&>;
30
+
31
+ GAPBIND14_CLASS(m, Congruence);
32
+ GAPBIND14_CONSTRUCTOR_OVERLOAD(m, Congruence, create, congruence_init);
33
+ GAPBIND14_CLASS_MEM_FN(m, Congruence, nr_generating_pairs, nr_generating_pairs);
34
+ GAPBIND14_CLASS_MEM_FN_OVERLOAD(
35
+ m,
36
+ Congruence,
37
+ add_pair,
38
+ add_pair,
39
+ (gapbind14::overload_cast<word_type const&, word_type const&>) );
40
+ GAPBIND14_CLASS_MEM_FN(m, Congruence, nr_classes, nr_classes);
41
+ GAPBIND14_CLASS_MEM_FN(m, Congruence, word_to_class_index, word_to_class_index);
42
+ GAPBIND14_CLASS_MEM_FN(m, Congruence, contains, contains);
43
+ GAPBIND14_CLASS_MEM_FN(m, Congruence, less, less);
44
+
45
+ GAPBIND14_FINALIZE(m);
46
+ ```
47
+
48
+ The above code produces a record named `libsemigroups` that's available in GAP:
49
+
50
+ ```gap
51
+ gap> libsemigroups;
52
+ rec( Congruence := rec( add_pair := function( arg1, arg2, arg3 ) ... end,
53
+ contains := function( arg1, arg2, arg3 ) ... end,
54
+ create := function( arg1 ) ... end,
55
+ less := function( arg1, arg2, arg3 ) ... end,
56
+ nr_classes := function( arg1 ) ... end,
57
+ nr_generating_pairs := function( arg1 ) ... end,
58
+ word_to_class_index := function( arg1, arg2 ) ... end )
59
+ ```
60
+
61
+ the component `Congruence` is itself a record whose components are bound to GAP
62
+ functions for each one of the member functions declared by `GAPBIND14_CLASS_MEM_FN` or
63
+ `GAPBIND14_CONSTRUCTOR_OVERLOAD`. The following GAP code can then be used to
64
+ create C++ object of type ``libsemigroups::Congruence`` and interact with them:
65
+
66
+ ```gap
67
+ # where C is a belongs to IsCongruenceByGeneratingPairsRep
68
+ S := Range(C);
69
+ CC := libsemigroups.Congruence.create([CongruenceByGeneratingPairsKind(C),
70
+ CppFroidurePin(S)]);
71
+ add_pair := libsemigroups.Congruence.add_pair;
72
+ for pair in CongruenceByGeneratingPairsPairs(C) do
73
+ add_pair(CC, Factorization(S, pair[1]) - 1, Factorization(S, pair[2]) - 1);
74
+ od;
75
+ return CC;
76
+ ```
@@ -0,0 +1,4 @@
1
+ /Makefile
2
+ /bin/
3
+ /src/gapbind14.cc
4
+ /doc/
@@ -0,0 +1,293 @@
1
+ gapbind_demo is free software; you can redistribute and/or modify
2
+ it under the terms of the GNU General Public License as published by
3
+ the Free Software Foundation; either version 2 of the License, or (at
4
+ your opinion) any later version.
5
+
6
+ gapbind_demo is distributed in the hope that it will be useful,
7
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
8
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
+ General Public License for more details.
10
+
11
+ Version 2 of the GNU General Public License follows.
12
+
13
+ GNU GENERAL PUBLIC LICENSE
14
+ Version 2, June 1991
15
+
16
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
17
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ Everyone is permitted to copy and distribute verbatim copies
19
+ of this license document, but changing it is not allowed.
20
+
21
+ Preamble
22
+
23
+ The licenses for most software are designed to take away your
24
+ freedom to share and change it. By contrast, the GNU General Public
25
+ License is intended to guarantee your freedom to share and change free
26
+ software--to make sure the software is free for all its users. This
27
+ General Public License applies to most of the Free Software
28
+ Foundation's software and to any other program whose authors commit to
29
+ using it. (Some other Free Software Foundation software is covered by
30
+ the GNU Lesser General Public License instead.) You can apply it to
31
+ your programs, too.
32
+
33
+ When we speak of free software, we are referring to freedom, not
34
+ price. Our General Public Licenses are designed to make sure that you
35
+ have the freedom to distribute copies of free software (and charge for
36
+ this service if you wish), that you receive source code or can get it
37
+ if you want it, that you can change the software or use pieces of it
38
+ in new free programs; and that you know you can do these things.
39
+
40
+ To protect your rights, we need to make restrictions that forbid
41
+ anyone to deny you these rights or to ask you to surrender the rights.
42
+ These restrictions translate to certain responsibilities for you if you
43
+ distribute copies of the software, or if you modify it.
44
+
45
+ For example, if you distribute copies of such a program, whether
46
+ gratis or for a fee, you must give the recipients all the rights that
47
+ you have. You must make sure that they, too, receive or can get the
48
+ source code. And you must show them these terms so they know their
49
+ rights.
50
+
51
+ We protect your rights with two steps: (1) copyright the software, and
52
+ (2) offer you this license which gives you legal permission to copy,
53
+ distribute and/or modify the software.
54
+
55
+ Also, for each author's protection and ours, we want to make certain
56
+ that everyone understands that there is no warranty for this free
57
+ software. If the software is modified by someone else and passed on, we
58
+ want its recipients to know that what they have is not the original, so
59
+ that any problems introduced by others will not reflect on the original
60
+ authors' reputations.
61
+
62
+ Finally, any free program is threatened constantly by software
63
+ patents. We wish to avoid the danger that redistributors of a free
64
+ program will individually obtain patent licenses, in effect making the
65
+ program proprietary. To prevent this, we have made it clear that any
66
+ patent must be licensed for everyone's free use or not licensed at all.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ GNU GENERAL PUBLIC LICENSE
72
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
73
+
74
+ 0. This License applies to any program or other work which contains
75
+ a notice placed by the copyright holder saying it may be distributed
76
+ under the terms of this General Public License. The "Program", below,
77
+ refers to any such program or work, and a "work based on the Program"
78
+ means either the Program or any derivative work under copyright law:
79
+ that is to say, a work containing the Program or a portion of it,
80
+ either verbatim or with modifications and/or translated into another
81
+ language. (Hereinafter, translation is included without limitation in
82
+ the term "modification".) Each licensee is addressed as "you".
83
+
84
+ Activities other than copying, distribution and modification are not
85
+ covered by this License; they are outside its scope. The act of
86
+ running the Program is not restricted, and the output from the Program
87
+ is covered only if its contents constitute a work based on the
88
+ Program (independent of having been made by running the Program).
89
+ Whether that is true depends on what the Program does.
90
+
91
+ 1. You may copy and distribute verbatim copies of the Program's
92
+ source code as you receive it, in any medium, provided that you
93
+ conspicuously and appropriately publish on each copy an appropriate
94
+ copyright notice and disclaimer of warranty; keep intact all the
95
+ notices that refer to this License and to the absence of any warranty;
96
+ and give any other recipients of the Program a copy of this License
97
+ along with the Program.
98
+
99
+ You may charge a fee for the physical act of transferring a copy, and
100
+ you may at your option offer warranty protection in exchange for a fee.
101
+
102
+ 2. You may modify your copy or copies of the Program or any portion
103
+ of it, thus forming a work based on the Program, and copy and
104
+ distribute such modifications or work under the terms of Section 1
105
+ above, provided that you also meet all of these conditions:
106
+
107
+ a) You must cause the modified files to carry prominent notices
108
+ stating that you changed the files and the date of any change.
109
+
110
+ b) You must cause any work that you distribute or publish, that in
111
+ whole or in part contains or is derived from the Program or any
112
+ part thereof, to be licensed as a whole at no charge to all third
113
+ parties under the terms of this License.
114
+
115
+ c) If the modified program normally reads commands interactively
116
+ when run, you must cause it, when started running for such
117
+ interactive use in the most ordinary way, to print or display an
118
+ announcement including an appropriate copyright notice and a
119
+ notice that there is no warranty (or else, saying that you provide
120
+ a warranty) and that users may redistribute the program under
121
+ these conditions, and telling the user how to view a copy of this
122
+ License. (Exception: if the Program itself is interactive but
123
+ does not normally print such an announcement, your work based on
124
+ the Program is not required to print an announcement.)
125
+
126
+ These requirements apply to the modified work as a whole. If
127
+ identifiable sections of that work are not derived from the Program,
128
+ and can be reasonably considered independent and separate works in
129
+ themselves, then this License, and its terms, do not apply to those
130
+ sections when you distribute them as separate works. But when you
131
+ distribute the same sections as part of a whole which is a work based
132
+ on the Program, the distribution of the whole must be on the terms of
133
+ this License, whose permissions for other licensees extend to the
134
+ entire whole, and thus to each and every part regardless of who wrote it.
135
+
136
+ Thus, it is not the intent of this section to claim rights or contest
137
+ your rights to work written entirely by you; rather, the intent is to
138
+ exercise the right to control the distribution of derivative or
139
+ collective works based on the Program.
140
+
141
+ In addition, mere aggregation of another work not based on the Program
142
+ with the Program (or with a work based on the Program) on a volume of
143
+ a storage or distribution medium does not bring the other work under
144
+ the scope of this License.
145
+
146
+ 3. You may copy and distribute the Program (or a work based on it,
147
+ under Section 2) in object code or executable form under the terms of
148
+ Sections 1 and 2 above provided that you also do one of the following:
149
+
150
+ a) Accompany it with the complete corresponding machine-readable
151
+ source code, which must be distributed under the terms of Sections
152
+ 1 and 2 above on a medium customarily used for software interchange; or,
153
+
154
+ b) Accompany it with a written offer, valid for at least three
155
+ years, to give any third party, for a charge no more than your
156
+ cost of physically performing source distribution, a complete
157
+ machine-readable copy of the corresponding source code, to be
158
+ distributed under the terms of Sections 1 and 2 above on a medium
159
+ customarily used for software interchange; or,
160
+
161
+ c) Accompany it with the information you received as to the offer
162
+ to distribute corresponding source code. (This alternative is
163
+ allowed only for noncommercial distribution and only if you
164
+ received the program in object code or executable form with such
165
+ an offer, in accord with Subsection b above.)
166
+
167
+ The source code for a work means the preferred form of the work for
168
+ making modifications to it. For an executable work, complete source
169
+ code means all the source code for all modules it contains, plus any
170
+ associated interface definition files, plus the scripts used to
171
+ control compilation and installation of the executable. However, as a
172
+ special exception, the source code distributed need not include
173
+ anything that is normally distributed (in either source or binary
174
+ form) with the major components (compiler, kernel, and so on) of the
175
+ operating system on which the executable runs, unless that component
176
+ itself accompanies the executable.
177
+
178
+ If distribution of executable or object code is made by offering
179
+ access to copy from a designated place, then offering equivalent
180
+ access to copy the source code from the same place counts as
181
+ distribution of the source code, even though third parties are not
182
+ compelled to copy the source along with the object code.
183
+
184
+ 4. You may not copy, modify, sublicense, or distribute the Program
185
+ except as expressly provided under this License. Any attempt
186
+ otherwise to copy, modify, sublicense or distribute the Program is
187
+ void, and will automatically terminate your rights under this License.
188
+ However, parties who have received copies, or rights, from you under
189
+ this License will not have their licenses terminated so long as such
190
+ parties remain in full compliance.
191
+
192
+ 5. You are not required to accept this License, since you have not
193
+ signed it. However, nothing else grants you permission to modify or
194
+ distribute the Program or its derivative works. These actions are
195
+ prohibited by law if you do not accept this License. Therefore, by
196
+ modifying or distributing the Program (or any work based on the
197
+ Program), you indicate your acceptance of this License to do so, and
198
+ all its terms and conditions for copying, distributing or modifying
199
+ the Program or works based on it.
200
+
201
+ 6. Each time you redistribute the Program (or any work based on the
202
+ Program), the recipient automatically receives a license from the
203
+ original licensor to copy, distribute or modify the Program subject to
204
+ these terms and conditions. You may not impose any further
205
+ restrictions on the recipients' exercise of the rights granted herein.
206
+ You are not responsible for enforcing compliance by third parties to
207
+ this License.
208
+
209
+ 7. If, as a consequence of a court judgment or allegation of patent
210
+ infringement or for any other reason (not limited to patent issues),
211
+ conditions are imposed on you (whether by court order, agreement or
212
+ otherwise) that contradict the conditions of this License, they do not
213
+ excuse you from the conditions of this License. If you cannot
214
+ distribute so as to satisfy simultaneously your obligations under this
215
+ License and any other pertinent obligations, then as a consequence you
216
+ may not distribute the Program at all. For example, if a patent
217
+ license would not permit royalty-free redistribution of the Program by
218
+ all those who receive copies directly or indirectly through you, then
219
+ the only way you could satisfy both it and this License would be to
220
+ refrain entirely from distribution of the Program.
221
+
222
+ If any portion of this section is held invalid or unenforceable under
223
+ any particular circumstance, the balance of the section is intended to
224
+ apply and the section as a whole is intended to apply in other
225
+ circumstances.
226
+
227
+ It is not the purpose of this section to induce you to infringe any
228
+ patents or other property right claims or to contest validity of any
229
+ such claims; this section has the sole purpose of protecting the
230
+ integrity of the free software distribution system, which is
231
+ implemented by public license practices. Many people have made
232
+ generous contributions to the wide range of software distributed
233
+ through that system in reliance on consistent application of that
234
+ system; it is up to the author/donor to decide if he or she is willing
235
+ to distribute software through any other system and a licensee cannot
236
+ impose that choice.
237
+
238
+ This section is intended to make thoroughly clear what is believed to
239
+ be a consequence of the rest of this License.
240
+
241
+ 8. If the distribution and/or use of the Program is restricted in
242
+ certain countries either by patents or by copyrighted interfaces, the
243
+ original copyright holder who places the Program under this License
244
+ may add an explicit geographical distribution limitation excluding
245
+ those countries, so that distribution is permitted only in or among
246
+ countries not thus excluded. In such case, this License incorporates
247
+ the limitation as if written in the body of this License.
248
+
249
+ 9. The Free Software Foundation may publish revised and/or new versions
250
+ of the General Public License from time to time. Such new versions will
251
+ be similar in spirit to the present version, but may differ in detail to
252
+ address new problems or concerns.
253
+
254
+ Each version is given a distinguishing version number. If the Program
255
+ specifies a version number of this License which applies to it and "any
256
+ later version", you have the option of following the terms and conditions
257
+ either of that version or of any later version published by the Free
258
+ Software Foundation. If the Program does not specify a version number of
259
+ this License, you may choose any version ever published by the Free Software
260
+ Foundation.
261
+
262
+ 10. If you wish to incorporate parts of the Program into other free
263
+ programs whose distribution conditions are different, write to the author
264
+ to ask for permission. For software which is copyrighted by the Free
265
+ Software Foundation, write to the Free Software Foundation; we sometimes
266
+ make exceptions for this. Our decision will be guided by the two goals
267
+ of preserving the free status of all derivatives of our free software and
268
+ of promoting the sharing and reuse of software generally.
269
+
270
+ NO WARRANTY
271
+
272
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
273
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
274
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
275
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
276
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
277
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
278
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
279
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
280
+ REPAIR OR CORRECTION.
281
+
282
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
283
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
284
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
285
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
286
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
287
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
288
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
289
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
290
+ POSSIBILITY OF SUCH DAMAGES.
291
+
292
+ END OF TERMS AND CONDITIONS
293
+
@@ -0,0 +1,220 @@
1
+ ########################################################################
2
+ #
3
+ # The build rules in this file are intended for use by GAP packages that
4
+ # want to build a simple GAP kernel extensions. They are based on the
5
+ # GAP build system, and require GNU make. To use this in your GAP
6
+ # package, `include` this file from your primary Makefile. You must also
7
+ # set several variables beforehand:
8
+ #
9
+ # - GAPPATH must be set to the location of the GAP installation against
10
+ # which to build your package.
11
+ # - KEXT_NAME should be the name of your kernel extension (without
12
+ # file extensions like .so or .dll)
13
+ # - KEXT_SOURCES must contain a list of .c or .cc files to be linked
14
+ # into your kernel extension
15
+ # - optionally, you can set KEXT_CFLAGS, KEXT_CXXFLAGS, KEXT_LDFLAGS
16
+ # - if you are using autoconf to produce your configure script, set
17
+ # KEXT_USE_AUTOCONF to 1 to enable dependency rules that enable
18
+ # regenerating the configure script etc. when necessary
19
+ #
20
+ # The contents of this file are released into the public domain; hence
21
+ # you may edit this file as you wish, bundle and distribute it with your
22
+ # package, etc.
23
+ #
24
+ # If you bundle this file with your package, please try not to edit it,
25
+ # so that we can keep it identical across all GAP packages. Instead, if
26
+ # you find that you must edit it, please submit your changes back to
27
+ # the GAP team, so that a future version of this file can be adjusted
28
+ # to cover your usecase without modifications, thus ensuring you can
29
+ # always easily update to newer version of it.
30
+ #
31
+ ########################################################################
32
+
33
+ # read GAP's build settings
34
+ include $(GAPPATH)/sysinfo.gap
35
+
36
+ # hack to support GAP <= 4.9
37
+ ifndef GAP_KERNEL_MAJOR_VERSION
38
+ KEXT_CFLAGS += -I$(GAP_LIB_DIR)/src
39
+ KEXT_CXXFLAGS += -I$(GAP_LIB_DIR)/src
40
+ endif
41
+
42
+ # honor used supplied flags
43
+ KEXT_CFLAGS += $(CPPFLAGS)
44
+ KEXT_CFLAGS += $(CFLAGS)
45
+ KEXT_CXXFLAGS += $(CPPFLAGS)
46
+ KEXT_CXXFLAGS += $(CXXFLAGS)
47
+ KEXT_LDFLAGS += $(LDFLAGS)
48
+
49
+ # various derived settings
50
+ KEXT_BINARCHDIR = bin/$(GAParch)
51
+ KEXT_SO = $(KEXT_BINARCHDIR)/$(KEXT_NAME).so
52
+
53
+ # the following settings are provided by sysinfo.gap in GAP >= 4.12;
54
+ # for compatibility with older GAP version (at least 4.9, 4.10, 4.11)
55
+ # we try to "guess" suitable values here
56
+ GAP ?= $(GAPPATH)/gap
57
+ GAC ?= $(GAPPATH)/gac
58
+ GAP_OBJEXT ?= lo
59
+
60
+ # override KEXT_RECONF if your package needs a different invocation
61
+ # for reconfiguring (e.g. `./config.status --recheck` for autoconf)
62
+ ifdef KEXT_USE_AUTOCONF
63
+ KEXT_RECONF ?= ./config.status Makefile
64
+ else
65
+ KEXT_RECONF ?= ./configure "$(GAPPATH)"
66
+ endif
67
+
68
+ # default target
69
+ all: $(KEXT_SO)
70
+ .PHONY: all
71
+
72
+ ########################################################################
73
+ # Object files
74
+ # For each file FOO.c in SOURCES, add gen/FOO.$(GAP_OBJEXT) to KEXT_OBJS
75
+ # and similar for .cc files
76
+ ########################################################################
77
+ KEXT_OBJS = $(patsubst %.s,gen/%.$(GAP_OBJEXT), \
78
+ $(patsubst %.cc,gen/%.$(GAP_OBJEXT), \
79
+ $(patsubst %.c,gen/%.$(GAP_OBJEXT), \
80
+ $(KEXT_SOURCES))))
81
+
82
+ ########################################################################
83
+ # Quiet rules.
84
+ #
85
+ # Replace regular output with quiet messages, unless V is set,
86
+ # e.g. "make V=1"
87
+ ########################################################################
88
+ ifneq ($(findstring $(MAKEFLAGS),s),s)
89
+ ifndef V
90
+ QUIET_GAC = @echo " GAC $< => $@";>/dev/null # keep the trailing space!
91
+ endif
92
+ endif
93
+
94
+ ########################################################################
95
+ # Rules for automatic header dependency tracking.
96
+ # This is based on the GAP build system.
97
+ ########################################################################
98
+
99
+ # List of all (potential) dependency files, derived from KEXT_OBJS
100
+ KEXT_DEPFILES = $(patsubst %.$(GAP_OBJEXT),%.d,$(KEXT_OBJS))
101
+
102
+ # Include the dependency tracking files
103
+ -include $(KEXT_DEPFILES)
104
+
105
+ # Mark *.d files as PHONY. This stops make from trying to recreate them
106
+ # (which it can't), and in particular from looking for potential source
107
+ # files. This can save quite a bit of disk access time.
108
+ .PHONY: $(KEXT_DEPFILES)
109
+
110
+ # The following flags instruct the compiler to enable advanced
111
+ # dependency tracking. Supported by GCC 3 and newer; clang; Intel C
112
+ # compiler; and more.
113
+ KEXT_DEPFLAGS = -MQ "$@" -MMD -MP -MF $(@D)/$(*F).d
114
+
115
+ # build rule for C code
116
+ # The dependency on Makefile ensures that re-running configure recompiles everything
117
+ gen/%.$(GAP_OBJEXT): %.c Makefile
118
+ @mkdir -p $(@D)
119
+ $(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -p "$(KEXT_CFLAGS)" -c $< -o $@
120
+
121
+ # build rule for C++ code
122
+ # The dependency on Makefile ensures that re-running configure recompiles everything
123
+ gen/%.$(GAP_OBJEXT): %.cc Makefile
124
+ @mkdir -p $(@D)
125
+ $(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -p "$(KEXT_CXXFLAGS)" -c $< -o $@
126
+
127
+ # build rule for assembler code
128
+ # The dependency on Makefile ensures that re-running configure recompiles everything
129
+ gen/%.$(GAP_OBJEXT): %.s Makefile
130
+ @mkdir -p $(@D)
131
+ $(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -p "$(KEXT_CFLAGS)" -c $< -o $@
132
+
133
+ # build rule for linking all object files together into a kernel extension
134
+ $(KEXT_SO): $(KEXT_OBJS)
135
+ @mkdir -p $(@D)
136
+ $(QUIET_GAC)$(GAC) -d -p "$(KEXT_DEPFLAGS)" -P "$(KEXT_LDFLAGS)" $(KEXT_OBJS) -o $@
137
+
138
+ # hook into `make clean`
139
+ clean: clean-kext
140
+ clean-kext:
141
+ rm -rf $(KEXT_BINARCHDIR) gen
142
+
143
+ # hook into `make distclean`
144
+ distclean: distclean-kext
145
+ distclean-kext:
146
+ rm -rf bin gen Makefile
147
+ rm -rf doc/_*.xml
148
+ rm -rf doc/*.aux doc/*.bbl doc/*.blg doc/*.brf doc/*.idx doc/*.idx
149
+ rm -rf doc/*.ilg doc/*.ind doc/*.log doc/*.out doc/*.pnr doc/*.toc
150
+
151
+ # hook into `make doc`
152
+ doc: doc-kext
153
+ doc-kext:
154
+ $(GAP) --quitonbreak -b -q < makedoc.g
155
+
156
+ # hook into `make check`
157
+ check: check-kext
158
+ check-kext:
159
+ $(GAP) tst/testall.g
160
+
161
+ # re-run configure if configure, Makefile.in or GAP itself changed
162
+ Makefile: configure Makefile.in $(GAPPATH)/sysinfo.gap
163
+ $(KEXT_RECONF)
164
+
165
+ ifdef KEXT_USE_AUTOCONF
166
+
167
+ # react to modifications of the build system
168
+ configure_deps = configure.ac $(wildcard m4/*.m4)
169
+
170
+ ifneq ($(MAINTAINER_MODE),no)
171
+ configure: $(configure_deps)
172
+ @if command -v autoconf >/dev/null 2>&1 ; then \
173
+ echo "running autoconf" ; \
174
+ autoconf ; \
175
+ else \
176
+ echo "autoconf not available, proceeding with stale configure" ; \
177
+ fi
178
+ endif # MAINTAINER_MODE
179
+
180
+ # re-run configure if configure, Makefile.in or GAP itself changed
181
+ config.status: configure $(GAPPATH)/sysinfo.gap
182
+ ./config.status --recheck
183
+
184
+ # update Makefile if config.status changed
185
+ Makefile: config.status
186
+
187
+ gen/pkgconfig.h: gen/pkgconfig.h.stamp
188
+ @if test ! -f $@; then rm -f $<; else :; fi
189
+ @if test ! -f $@; then $(MAKE) $<; else :; fi
190
+
191
+ gen/pkgconfig.h.stamp: src/pkgconfig.h.in config.status
192
+ @rm -f $@
193
+ @mkdir -p $(@D)
194
+ ./config.status gen/pkgconfig.h
195
+ echo > $@
196
+
197
+ ifneq ($(MAINTAINER_MODE),no)
198
+ src/pkgconfig.h.in: $(configure_deps)
199
+ @if command -v autoheader >/dev/null 2>&1 ; then \
200
+ mkdir -p $(@D) ; \
201
+ echo "running autoheader" ; \
202
+ autoheader ; \
203
+ rm -f gen/pkgconfig.h.stamp ; \
204
+ else \
205
+ echo "autoheader not available, proceeding with stale config.h" ; \
206
+ fi
207
+ touch $@
208
+ endif # MAINTAINER_MODE
209
+
210
+ endif # KEXT_USE_AUTOCONF
211
+
212
+ .PHONY: check clean distclean doc
213
+ .PHONY: check-kext clean-kext distclean-kext doc-kext
214
+
215
+ ########################################################################
216
+ # Makefile debugging trick:
217
+ # call print-VARIABLE to see the runtime value of any variable
218
+ ########################################################################
219
+ print-%:
220
+ @echo '$*=$($*)'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Makefile rules for the orb package
3
+ #
4
+ KEXT_NAME = gapbind_demo
5
+ KEXT_SOURCES = src/gapbind_demo.c src/gapbind14.cc
6
+
7
+ KEXT_CXXFLAGS = -I../include -std=gnu++14
8
+ KEXT_LDFLAGS = -lstdc++
9
+
10
+ # ifndef GAP_KERNEL_MAJOR_VERSION
11
+ # KEXT_CXXFLAGS += -I$(GAP_LIB_DIR)/pkg/semigroups/gapbind14/include
12
+ # endif
13
+
14
+ # include shared GAP package build system
15
+ GAPPATH = @GAPPATH@
16
+ include Makefile.gappkg
17
+
18
+ src/gapbind14.cc: ../src/gapbind14.cpp
19
+ cp $< $@