|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
CompiledFunction
CompiledFunction[args...]
represents compiled code for evaluating a compiled function.
DetailsDetails
- 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 Mathematica.
- The code in a CompiledFunction object is based on an idealized register machine.
- A CompiledFunction object can additionally refer to natively compiled code.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
CompiledFunction objects are generated by Compile:
| In[1]:= |
| Out[1]= |
CompiledFunction objects can be used as normal Function objects:
| In[2]:= |
| Out[2]= |
Arguments are coerced, if possible, to be approximate real:
| In[3]:= |
| Out[3]= |
When exceptional values are encountered, the uncompiled function is used:
New in 2 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
