Next: Aggregate expressions, Previous: Arithmetic expressions, Up: Expressions [Contents][Index]

In addition to the operators described in Arithmetic
expressions, coNCePTuaL contains a number of built-in functions
that perform a variety of arithmetic operations that are often
found to be useful in network correctness and performance testing
codes. These include simple functions that map one number to
another as well as a set of topology-specific functions that help
implement communication across various topologies, specifically
`n`-ary trees, meshes, tori, and `k`-nomial
trees. coNCePTuaL currently supports the following functions:

With a few exceptions, all of the above take as an argument one or more numeric values (which may be the result of an arithmetic expression). The following sections describe each function in turn.

• Integer functions: | Map one integer to another | |

• Floating-point functions: | Map one floating-point value to another | |

• n-ary tree functions: | Find parents and children in n-ary trees | |

• k-nomial tree functions: | Find parents and children in k-nomial trees | |

• Mesh/torus functions: | Find neighbors in 1-D, 2-D, and 3-D meshes/tori | |

• Random-number functions: | Generate unsynchronized pseudorandom numbers | |

• Processor/task mapping functions: | Map between physical and virtual task IDs | |

• File-reading functions: | Extract numbers from file data |

Next: Aggregate expressions, Previous: Arithmetic expressions, Up: Expressions [Contents][Index]