represents compiled code for evaluating a compiled function.
- Compile generates a CompiledFunction object that can be executed by applying it to appropriate arguments.
- CompiledFunction objects that are constructed explicitly can also be executed. Basic consistency checks are done when such objects are first evaluated by the Wolfram Language.
- The code in a CompiledFunction object is based on an idealized register machine.
- A CompiledFunction object can additionally refer to natively compiled code.
Basic Examples (1)
CompiledFunction objects are generated by Compile:
CompiledFunction objects can be used as normal Function objects:
Arguments are coerced, if possible, to be approximate real:
When exceptional values are encountered, the uncompiled function is used:
Wolfram Research (1991), CompiledFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CompiledFunction.html (updated 2010).
Wolfram Language. 1991. "CompiledFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/CompiledFunction.html.
Wolfram Language. (1991). CompiledFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompiledFunction.html