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 38 39 40 Ind
[Top of Book] [Contents] [Previous Chapter] [Next Chapter]

[MathJax off]

37 Parallel Computation - Extra Functions
37.1
37.1-1 ChildFunction
37.1-2 ChildRead
37.1-3 ChildReadEval
37.1-4 ParallelList

### 37 Parallel Computation - Extra Functions

#### 37.1

##### 37.1-1 ChildFunction

`‣ ChildFunction`( str, s ) | ( function )

This runs the GAP function \(str\)="function(arg);" on a child process accessed by the stream s. The output from "func;" can be accessed via the stream.

Examples:

##### 37.1-2 ChildRead

`‣ ChildRead`( s ) | ( function )

This returns, as a string, the output of the last application of \(ChildFunction("function(arg);",s)\).

Examples:

##### 37.1-3 ChildReadEval

`‣ ChildReadEval`( s ) | ( function )

This returns, as an evaluated string, the output of the last application of \(ChildFunction("function(arg);",s)\).

Examples:

##### 37.1-4 ParallelList

`‣ ParallelList`( I, fn, L ) | ( function )

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\).)

Examples: 1 , 2

[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 38 39 40 Ind

generated by GAPDoc2HTML