This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

CompiledFunction

CompiledFunction[args...]
represents compiled code for evaluating a compiled function.
  • CompiledFunction objects that are constructed explicitly can also be executed. Basic consistency checks are done when such objects are first evaluated by Mathematica.
  • The code in a CompiledFunction object is based on an idealized register machine.
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:
CompiledFunction objects are generated by Compile:
In[1]:=
Click for copyable input
Out[1]=
CompiledFunction objects can be used as normal Function objects:
In[2]:=
Click for copyable input
Out[2]=
Arguments are coerced, if possible, to be approximate real:
In[3]:=
Click for copyable input
Out[3]=
When exceptional values are encountered, the uncompiled function is used:
In[4]:=
Click for copyable input
Out[4]=
New in 2 | Last modified in 8