HAP home

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


 





generated by GAPDoc2HTML