|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
CompilationOptions
CompilationOptions
is an option for Compile that specifies settings for the compilation process.
DetailsDetails
- CompilationOptions applies to the creation of the compiled function.
- CompilationOptions accepts lists of settings in the form CompilationOptions->{...}.
- CompilationOptions can also take the following nested settings:
-
"ExpressionOptimization" Automatic whether to optimize the input expression "InlineCompiledFunctions" Automatic whether to expand the body of nested compiled functions "InlineExternalDefinitions" Automatic whether to use external definitions - Possible values for
are: -
False do not optimize the input expression True optimize the input expression Automatic only use the optimized expression if the compiled function does not make external calls - Possible values for
are: -
False do not inline nested compiled functions True inline nested compiled functions Automatic inline small nested compiled functions - Possible values for
are: -
False do not use external definitions True insert the body of external definitions Automatic use the type of external definitions
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Options to control how the compilation runs can be given in a nested form. For example, you can turn off compilation optimizations. This may cause the same computation to be done more than once:
| In[1]:= |
| Out[1]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
