GAP (HAP) - Chapter 35: Parallel Computation - Extra Functions

Goto Chapter: Top 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 Ind
[Top of Book] [Contents] [Previous Chapter] [Next Chapter]

35 Parallel Computation - Extra Functions

### 35 Parallel Computation - Extra Functions

`ChildFunction("function(arg);",s)` This runs the GAP function "function(arg);" on a child process accessed by the stream s. The output from "func;" can be accessed via the stream.
`ChildRead(s)` This returns, as a string, the output of the last application of ChildFunction("function(arg);",s).
`ChildReadEval(s)` This returns, as an evaluated string, the output of the last application of ChildFunction("function(arg);",s).
`ParallelList(I,fn,L)` Inputs a list I, a function fn such that fn(x) is defined for all x in I, and a list of children L. It uses the children in L to compute List(I,x->fn(x)). (Obviously the function fn must be defined on all child processes in L.)

[Top of Book] [Contents] [Previous Chapter] [Next Chapter]
Goto Chapter: Top 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 Ind

generated by GAPDoc2HTML