<?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>
<
title>GAP (HAP commands) - Chapter
37: Parallel Computation - Extra Functions</
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=
"chap37" onload=
"jscontent()">
<
div class=
"chlinktop"><
span class=
"chlink1">Goto Chapter: </
span><
a href=
"chap0.html">Top</
a> <
a href="chap1.html">1</a> <a href="chap2.html">2</a> <a href="chap3.html">3</a> <a href="chap4.html">4</a> <a href="chap5.html">5</a> <a href="chap6.html">6</a> <a href="chap7.html">7</a> <a href="chap8.html">8</a> <a href="chap9.html">9</a> <a href="chap10.html">10</a> <a href="chap11.html">11</a> <a href="chap12.html">12</a> <a href="chap13.html">13</a> <a href="chap14.html">14</a> <a href="chap15.html">15</a> <a href="chap16.html">16</a> <a href="chap17.html">17</a> <a href="chap18.html">18</a> <a href="chap19.html">19</a> <a href="chap20.html">20</a> <a href="chap21.html">21</a> <a href="chap22.html">22</a> <a href="chap23.html">23</a> <a href="chap24.html">24</a> <a href="chap25.html">25</a> <a href="chap26.html">26</a> <a href="chap27.html">27</a> <a href="chap28.html">28</a> <a href="chap29.html">29</a> <a href="chap30.html">30</a> <a href="chap31.html">31</a> <a href="chap32.html">32</a> <a href="chap33.html">33</a> <a href="chap34.html">34</a> <a href="chap35.html">35</a> <a href="chap36.html">36</a> <a href="chap37.html">37</a> <a href="chap38.html">38</a> <a href="chap39.html">39</a> <a href="chap40.html">40</a> <a href="chapInd.html">Ind</a> </div>
<div class="chlinkprevnexttop"> <a href="chap0.html">[Top of Book]</a> <a href="chap0.html#contents">[Contents]</a> <a href="chap36.html">[Previous Chapter]</a> <a href="chap38.html">[Next Chapter]</a> </div>
<p id="mathjaxlink" class="pcenter"><a href="chap37_mj.html">[MathJax on]</a></p>
<p><a id="X85B21D56816A1B39" name="X85B21D56816A1B39"></a></p>
<div class="ChapSects"><a href="chap37.html#X85B21D56816A1B39">37 <span class="Heading"> Parallel Computation - Extra Functions</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap37.html#X7CFDEEC07F15CF82">37.1 <span class="Heading"> </span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap37.html#X85B7FC0981118357">37.1-1 ChildFunction</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap37.html#X8185936D86B71BE8">37.1-2 ChildRead</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap37.html#X8087495582FCF2AD">37.1-3 ChildReadEval</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap37.html#X7F7F210580378FFF">37.1-4 ParallelList</a></span>
</div></div>
</div>
<h3>37 <span class="Heading"> Parallel Computation - Extra Functions</span></h3>
<p><a id="X7CFDEEC07F15CF82" name="X7CFDEEC07F15CF82"></a></p>
<h4>37.1 <span class="Heading"> </span></h4>
<p><a id="X85B7FC0981118357" name="X85B7FC0981118357"></a></p>
<h5>37.1-1 ChildFunction</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">an style='color: green'>8227; ChildFunction</code>( <var class="Arg">str</var>, <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This runs the GAP function <span class="SimpleMath">str</span>="function(arg);" on a child process accessed by the stream s. The output from "func;" can be accessed via the stream.</p>
<p><strong class="button">Examples:</strong></p>
<p><a id="X8185936D86B71BE8" name="X8185936D86B71BE8"></a></p>
<h5>37.1-2 ChildRead</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">an style='color: green'>8227; ChildRead</code>( <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This returns, as a string, the output of the last application of <span class="SimpleMath">ChildFunction("function(arg);",s)</span>.</p>
<p><strong class="button">Examples:</strong></p>
<p><a id="X8087495582FCF2AD" name="X8087495582FCF2AD"></a></p>
<h5>37.1-3 ChildReadEval</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">an style='color: green'>8227; ChildReadEval</code>( <var class="Arg">s</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This returns, as an evaluated string, the output of the last application of <span class="SimpleMath">ChildFunction("function(arg);",s)</span>.</p>
<p><strong class="button">Examples:</strong></p>
<p><a id="X7F7F210580378FFF" name="X7F7F210580378FFF"></a></p>
<h5>37.1-4 ParallelList</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">an style='color: green'>8227; ParallelList</code>( <var class="Arg">I</var>, <var class="Arg">fn</var>, <var class="Arg">L</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Inputs a list <span class="SimpleMath">I</span>, a function <span class="SimpleMath">fn</span> such that <span class="SimpleMath">fn(x)</span> is defined for all <span class="SimpleMath">x</span> in <span class="SimpleMath">I</span>, and a list of children <span class="SimpleMath">L</span>. It uses the children in <span class="SimpleMath">L</span> to compute <span class="SimpleMath">List(I,x->fn(x))</span>. (Obviously the function <span class="SimpleMath">fn</span> must be defined on all child processes in <span class="SimpleMath">L</span>.)</p>
<p><strong class="button">Examples:</strong> <span class="URL"><a href="../www/SideLinks/About/aboutBogomolov.html">1</a></span> , <span class="URL"><a href="../www/SideLinks/About/aboutParallel.html">2</a></span> </p>
<div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a> <a href="chap0.html#contents">[Contents]</a> <a href="chap36.html">[Previous Chapter]</a> <a href="chap38.html">[Next Chapter]</a> </div>
<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a> <a href="chap1.html">1</a> <a href="chap2.html">2</a> <a href="chap3.html">3</a> <a href="chap4.html">4</a> <a href="chap5.html">5</a> <a href="chap6.html">6</a> <a href="chap7.html">7</a> <a href="chap8.html">8</a> <a href="chap9.html">9</a> <a href="chap10.html">10</a> <a href="chap11.html">11</a> <a href="chap12.html">12</a> <a href="chap13.html">13</a> <a href="chap14.html">14</a> <a href="chap15.html">15</a> <a href="chap16.html">16</a> <a href="chap17.html">17</a> <a href="chap18.html">18</a> <a href="chap19.html">19</a> <a href="chap20.html">20</a> <a href="chap21.html">21</a> <a href="chap22.html">22</a> <a href="chap23.html">23</a> <a href="chap24.html">24</a> <a href="chap25.html">25</a> <a href="chap26.html">26</a> <a href="chap27.html">27</a> <a href="chap28.html">28</a> <a href="chap29.html">29</a> <a href="chap30.html">30</a> <a href="chap31.html">31</a> <a href="chap32.html">32</a> <a href="chap33.html">33</a> <a href="chap34.html">34</a> <a href="chap35.html">35</a> <a href="chap36.html">36</a> <a href="chap37.html">37</a> <a href="chap38.html">38</a> <a href="chap39.html">39</a> <a href="chap40.html">40</a> <a href="chapInd.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>
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-04)
¤
*© Formatika GbR, Deutschland