CompiledFunction

CompiledFunction[args]

represents compiled code for evaluating a compiled function.

Details

  • 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.

Examples

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

Text

Wolfram Research (1991), CompiledFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CompiledFunction.html (updated 2010).

CMS

Wolfram Language. 1991. "CompiledFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/CompiledFunction.html.

APA

Wolfram Language. (1991). CompiledFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompiledFunction.html

BibTeX

@misc{reference.wolfram_2024_compiledfunction, author="Wolfram Research", title="{CompiledFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/CompiledFunction.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_compiledfunction, organization={Wolfram Research}, title={CompiledFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/CompiledFunction.html}, note=[Accessed: 21-November-2024 ]}