Next: Random-number-function descriptions, Previous: Floating-point-function descriptions, Up: Language-visible functions [Contents][Index]
In the following functions, the ‘dfunc’ versions
merely cast their arguments to ncptl_int
s and call the
corresponding ‘func’ versions.
Return task task’s parent in an arity-ary tree.
Return child child of task task in an arity-ary tree.
Return task task’s x coordinate (coord=0), y coordinate (coord=1), or z coordinate (coord=2) on a width*height*depth mesh (or torus).
Return one of task task’s neighbors—not necessarily an immediate neighbor—on a 3-D mesh or torus. For the following explanation, assume that task task lies at coordinates (x, y, z) on a width*height*depth mesh or torus. In the mesh case (xtorus=ytorus=ztorus=0), the value returned is the task ID corresponding to coordinates (x+xdelta, y+ydelta, z+zdelta). In the full-torus case (xtorus=ytorus=ztorus=1), the value returned is the task ID corresponding to coordinates ((x+xdelta) mod width, (y+ydelta) mod height, (z+zdelta) mod depth).
Note that there are no 1-D or 2-D grid functions. Instead, the appropriate 3-D function should be used with depth and—in the 1-D case—height set to ‘1’.
Return task task’s parent in an arity-nomial tree of numtasks tasks.
If count_only is ‘0’, return task task’s childth child in an arity-nomial tree of numtasks tasks. If count_only is ‘1’, return the number of children task task has in an arity-nomial tree of numtasks tasks.
Next: Random-number-function descriptions, Previous: Floating-point-function descriptions, Up: Language-visible functions [Contents][Index]