1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>GAP (Utils) - Contents</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
<script src="manual.js" type="text/javascript"></script>
<script type="text/javascript">overwriteStyle();</script>
</head>
<body class="chap0" onload="jscontent()">
<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a> <a href="chap1_mj.html">1</a> <a href="chap2_mj.html">2</a> <a href="chap3_mj.html">3</a> <a href="chap4_mj.html">4</a> <a href="chap5_mj.html">5</a> <a href="chap6_mj.html">6</a> <a href="chap7_mj.html">7</a> <a href="chap8_mj.html">8</a> <a href="chap9_mj.html">9</a> <a href="chap10_mj.html">10</a> <a href="chap11_mj.html">11</a> <a href="chap12_mj.html">12</a> <a href="chapBib_mj.html">Bib</a> <a href="chapInd_mj.html">Ind</a> </div>
<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a> <a href="chap0_mj.html#contents">[Contents]</a> <a href="chap1_mj.html">[Next Chapter]</a> </div>
<p id="mathjaxlink" class="pcenter"><a href="chap0.html">[MathJax off]</a></p>
<p><a id="X7D2C85EC87DD46E5" name="X7D2C85EC87DD46E5"></a></p>
<div class="pcenter">
<h1>utils</h1>
<h2>Utility functions in <strong class="pkg">GAP</strong></h2>
<p>
0.93</p>
<p>
13 November 2025
</p>
</div>
<p><b>
Thomas Breuer
</b>
<br />Email: <span class="URL"><a href="mailto:sam@math.rwth-aachen.de">sam@math.rwth-aachen.de</a></span>
<br />Homepage: <span class="URL"><a href="https://www.math.rwth-aachen.de/~Thomas.Breuer">https://www.math.rwth-aachen.de/~Thomas.Breuer</a></span>
</p><p><b>
Sebastian Gutsche
</b>
<br />Email: <span class="URL"><a href="mailto:gutsche@mathematik.uni-siegen.de">gutsche@mathematik.uni-siegen.de</a></span>
<br />Homepage: <span class="URL"><a href="https://sebasguts.github.io/">https://sebasguts.github.io/</a></span>
</p><p><b>
Max Horn
</b>
<br />Email: <span class="URL"><a href="mailto:mhorn@rptu.de">mhorn@rptu.de</a></span>
<br />Homepage: <span class="URL"><a href="https://github.com/mhorn">https://github.com/mhorn</a></span>
</p><p><b>
Alexander Hulpke
</b>
<br />Email: <span class="URL"><a href="mailto:hulpke@math.colostate.edu">hulpke@math.colostate.edu</a></span>
<br />Homepage: <span class="URL"><a href="https://www.math.colostate.edu/~hulpke">https://www.math.colostate.edu/~hulpke</a></span>
</p><p><b>
Pedro García-Sánchez
</b>
<br />Email: <span class="URL"><a href="mailto:pedro@ugr.es">pedro@ugr.es</a></span>
<br />Homepage: <span class="URL"><a href="http://www.ugr.es/local/pedro">http://www.ugr.es/local/pedro</a></span>
</p><p><b>
Christopher Jefferson
</b>
<br />Email: <span class="URL"><a href="mailto:caj21@st-andrews.ac.uk">caj21@st-andrews.ac.uk</a></span>
<br />Homepage: <span class="URL"><a href="https://caj.host.cs.st-andrews.ac.uk/">https://caj.host.cs.st-andrews.ac.uk/</a></span>
</p><p><b>
Stefan Kohl
</b>
<br />Email: <span class="URL"><a href="mailto:stefan@mcs.st-and.ac.uk">stefan@mcs.st-and.ac.uk</a></span>
<br />Homepage: <span class="URL"><a href="https://www.gap-system.org/DevelopersPages/StefanKohl/">https://www.gap-system.org/DevelopersPages/StefanKohl/</a></span>
</p><p><b>
Frank Lübeck
</b>
<br />Email: <span class="URL"><a href="mailto:Frank.Luebeck@Math.RWTH-Aachen.De">Frank.Luebeck@Math.RWTH-Aachen.De</a></span>
<br />Homepage: <span class="URL"><a href="https://www.math.rwth-aachen.de/~Frank.Luebeck">https://www.math.rwth-aachen.de/~Frank.Luebeck</a></span>
</p><p><b>
Chris Wensley
</b>
<br />Email: <span class="URL"><a href="mailto:cdwensley.maths@btinternet.com">cdwensley.maths@btinternet.com</a></span>
<br />Homepage: <span class="URL"><a href="https://github.com/cdwensley">https://github.com/cdwensley</a></span>
</p>
<p><a id="X7AA6C5737B711C89" name="X7AA6C5737B711C89"></a></p>
<h3>Abstract</h3>
<p>The <strong class="pkg">Utils</strong> package provides a space for utility functions in a variety of <strong class="pkg">GAP</strong> packages to be collected together into a single package. In this way it is hoped that they will become more visible to package authors.</p>
<p>Any package author who transfers a function to <strong class="pkg">Utils</strong> will become an author of <strong class="pkg">Utils</strong>.</p>
<p>If deemed appropriate, functions may also be transferred from the main library.</p>
<p>Bug reports, suggestions and comments are, of course, welcome. Please contact the last author at <span class="URL"><a href="mailto:cdwensley.maths@btinternet.com">cdwensley.maths@btinternet.com</a></span> or submit an issue at the GitHub repository <span class="URL"><a href="https://github.com/gap-packages/utils/issues/">https://github.com/gap-packages/utils/issues/</a></span>.</p>
<p><a id="X81488B807F2A1CF1" name="X81488B807F2A1CF1"></a></p>
<h3>Copyright</h3>
<p>© 2015-2025, The GAP Group.</p>
<p>The <strong class="pkg">Utils</strong> package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</p>
<p><a id="X82A988D47DFAFCFA" name="X82A988D47DFAFCFA"></a></p>
<h3>Acknowledgements</h3>
<p>This documentation was prepared using the <strong class="pkg">GAPDoc</strong> <a href="chapBib_mj.html#biBGAPDoc">[LN17]</a> and <strong class="pkg">AutoDoc</strong> <a href="chapBib_mj.html#biBAutoDoc">[GH16]</a> packages.</p>
<p>The procedure used to produce new releases uses the package <strong class="pkg">GitHubPagesForGAP</strong> <a href="chapBib_mj.html#biBGitHubPagesForGAP">[Hor17]</a> and the package <strong class="pkg">ReleaseTools</strong>.</p>
<p><a id="X8537FEB07AF2BEC8" name="X8537FEB07AF2BEC8"></a></p>
<div class="contents">
<h3>Contents<a id="contents" name="contents"></a></h3>
<div class="ContChap"><a href="chap1_mj.html#X7DFB63A97E67C0A1">1 <span class="Heading">Introduction</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap1_mj.html#X8508AD637B79CEE8">1.1 <span class="Heading">Information for package authors</span></a>
</span>
</div>
</div>
<div class="ContChap"><a href="chap2_mj.html#X83686EE47E4D4F66">2 <span class="Heading">Printing Lists and Iterators</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap2_mj.html#X7F6817927F86240F">2.1 <span class="Heading">Printing selected items</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap2_mj.html#X784638AC84D49870">2.1-1 PrintSelection</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap3_mj.html#X7AE6EFC086C0EB3C">3 <span class="Heading">Lists, Sets and Strings</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X7C3F1E7D878AAA65">3.1 <span class="Heading">Functions for lists</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X78B7C92681D2F13C">3.1-1 DifferencesList</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7975371E865B89BC">3.1-2 QuotientsList</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X86096E73858CFABD">3.1-3 SearchCycle</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7EF06CAD7F35245D">3.1-4 RandomCombination</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X82F443FF84B8FCE3">3.2 <span class="Heading">Distinct and Common Representatives</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X78105CAA847A888C">3.2-1 DistinctRepresentatives</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X8033A2FE80FC2F2A">3.3 <span class="Heading">Functions for strings</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X870C964E7804B266">3.3-1 BlankFreeString</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap4_mj.html#X86E71C1687F2D0AD">4 <span class="Heading">Number-theoretic functions</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap4_mj.html#X7D33B5B17BF785CA">4.1 <span class="Heading">Functions for integers</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap4_mj.html#X8191A031788AC7C0">4.1-1 AllSmoothIntegers</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap4_mj.html#X78BE6B8B878D250D">4.1-2 AllProducts</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap4_mj.html#X845F46E579CEA43F">4.1-3 RestrictedPartitionsWithoutRepetitions</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap4_mj.html#X81708BF4858505E8">4.1-4 NextProbablyPrimeInt</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap4_mj.html#X8021EEE5787FCA37">4.1-5 PrimeNumbersIterator</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap5_mj.html#X8171DAF2833FF728">5 <span class="Heading">Groups and homomorphisms</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap5_mj.html#X7E21E6D285E6B12C">5.1 <span class="Heading">Functions for groups</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X80761843831B468E">5.1-1 Comm</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X803A050C7A183CCC">5.1-2 IsCommuting</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X87A8F01286548037">5.1-3 ListOfPowers</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X820B71307E41BEE5">5.1-4 GeneratorsAndInverses</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X84CF95227F9D562F">5.1-5 UpperFittingSeries</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap5_mj.html#X7FE4848B7DE6B3FD">5.2 <span class="Heading">Left Cosets for Groups</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X8340B4537F17DCD3">5.2-1 LeftCoset</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X793E48267EF5FD77">5.2-2 <span class="Heading">Inverse</span></a>
</span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap5_mj.html#X80A512877F515DE7">5.3 <span class="Heading">Functions for group homomorphisms</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X80C9A0B583FEA7B9">5.3-1 EpimorphismByGenerators</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X7C705F2A79F8E43C">5.3-2 Pullback</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X78DD2C617B992BE2">5.3-3 CentralProduct</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X801038CB808FC956">5.3-4 IdempotentEndomorphisms</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X81FA9E6C7F3B9238">5.3-5 DirectProductOfFunctions</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap5_mj.html#X7CB2D5F27F4182AF">5.3-6 DirectProductOfAutomorphismGroups</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap6_mj.html#X812CCAB278643A59">6 <span class="Heading">Matrices</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap6_mj.html#X802118FB7C94D6BA">6.1 <span class="Heading">Some operations for matrices</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap6_mj.html#X787B89237E1398B6">6.1-1 DirectSumDecompositionMatrices</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap7_mj.html#X85A3F00985453F95">7 <span class="Heading">Iterators</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap7_mj.html#X7BB5350081B27D17">7.1 <span class="Heading">Some iterators for groups and their isomorphisms</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap7_mj.html#X7F8B54D1806C762D">7.1-1 AllIsomorphismsIterator</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap7_mj.html#X831DA5AE8437578F">7.1-2 AllSubgroupsIterator</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap7_mj.html#X85413EED812C6497">7.2 <span class="Heading">Operations on iterators</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap7_mj.html#X87395A9181A35301">7.2-1 CartesianIterator</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap7_mj.html#X7C95E27987A812EA">7.2-2 UnorderedPairsIterator</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap8_mj.html#X7AA1073C7E943DD7">8 <span class="Heading">Records</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap8_mj.html#X82B3D1D583CDF0E5">8.1 <span class="Heading">Functions for records</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap8_mj.html#X84D82EB579B2ACCD">8.1-1 AssignGlobals</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap8_mj.html#X7E6207B47B9AA30C">8.2 <span class="Heading">Option records for functions</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap8_mj.html#X8322B9377CC590D2">8.2-1 OptionRecordWithDefaults</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap9_mj.html#X815B0C4B7EBE6E1E">9 <span class="Heading">Web Downloads</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap9_mj.html#X8758CB7F79EFB6ED">9.1 <span class="Heading">Functions for downloading files from the web</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap9_mj.html#X7A7438AE8448635E">9.1-1 Download</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap9_mj.html#X85182BA486E3C2AA">9.1-2 <span class="Heading">User preference <code class="code">DownloadVerifyCertificate</code></span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap9_mj.html#X79E10E5B83EF929F">9.1-3 <span class="Heading">User preference <code class="code">DownloadMaxTime</code></span></a>
</span>
</div></div>
</div>
<div class="ContChap"><a href="chap10_mj.html#X83EFC3178180D918">10 <span class="Heading">Various other functions</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap10_mj.html#X81A0A4FF842B039B">10.1 <span class="Heading">File operations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap10_mj.html#X7B7ECADF85F748BE">10.1-1 Log2HTML</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap10_mj.html#X84D2922D87EDE9E9">10.2 <span class="Heading">LaTeX strings</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap10_mj.html#X87DEB2B58266F858">10.2-1 IntOrOnfinityToLaTeX</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap10_mj.html#X7DC642B97CD02F4E">10.2-2 LaTeXStringFactorsInt</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap10_mj.html#X79F021B1830B68F6">10.3 <span class="Heading">Conversion to <span class="SimpleMath">\({\sf Magma}\)</span> strings</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap10_mj.html#X8768D7707B4CBBD4">10.3-1 ConvertToMagmaInputString</a></span>
</div></div>
</div>
<div class="ContChap"><a href="chap11_mj.html#X7F561B1D803182FF">11 <span class="Heading">Obsolete functions</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X7A6BB3D084912F35">11.1 <span class="Heading">Operations from AutoDoc</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X86F322FC7DECE36F">11.2 <span class="Heading">Functions for printing</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X84A4F0B281FA0F94">11.3 <span class="Heading">Other obsolete functions</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap11_mj.html#X78B7D1A982BE9866">11.3-1 <span class="Heading">Applicable Methods</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap11_mj.html#X7C1AF2467FB55D79">11.3-2 <span class="Heading">ExponentOfPrime</span></a>
</span>
</div></div>
</div>
<div class="ContChap"><a href="chap12_mj.html#X84AC9613842F014C">12 <span class="Heading">The transfer procedure</span></a>
</div>
<div class="ContChap"><a href="chapBib_mj.html"><span class="Heading">References</span></a></div>
<div class="ContChap"><a href="chapInd_mj.html"><span class="Heading">Index</span></a></div>
<br />
</div>
<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a> <a href="chap0_mj.html#contents">[Contents]</a> <a href="chap1_mj.html">[Next Chapter]</a> </div>
<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a> <a href="chap1_mj.html">1</a> <a href="chap2_mj.html">2</a> <a href="chap3_mj.html">3</a> <a href="chap4_mj.html">4</a> <a href="chap5_mj.html">5</a> <a href="chap6_mj.html">6</a> <a href="chap7_mj.html">7</a> <a href="chap8_mj.html">8</a> <a href="chap9_mj.html">9</a> <a href="chap10_mj.html">10</a> <a href="chap11_mj.html">11</a> <a href="chap12_mj.html">12</a> <a href="chapBib_mj.html">Bib</a> <a href="chapInd_mj.html">Ind</a> </div>
<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>
|