Next: , Previous: , Up: Expressions   [Contents][Index]


4.2.2 Built-in functions

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:

<func_name> ::= ABS | BITS | CBRT | FACTOR10 | LOG10 | MAX | MIN | ROOT | SQRT
| CEILING | FLOOR | ROUND
| TREE_PARENT | TREE_CHILD
| KNOMIAL_PARENT | KNOMIAL_CHILD | KNOMIAL_CHILDREN
| MESH_NEIGHBOR | MESH_COORDINATE | MESH_DISTANCE
| RANDOM_UNIFORM | RANDOM_GAUSSIAN
| RANDOM_POISSON | RANDOM_PARETO
| PROCESSOR_OF | TASK_OF
| FILE_DATA | STATIC_FILE_DATA

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.


Next: , Previous: , Up: Expressions   [Contents][Index]

Scott Pakin, pakin@lanl.gov