Questions about the generation and use of compiled functions using Compile.
Questions about the generation and use of compiled functions, e.g. using Compile
. Mathematica offers tools to compile functions and also to check and evaluate them without needs of an external editor. Questions about how to set up or parameterize a compiler, how to write efficient code, how to test compiled code and how well compiled code performs compared to non-compiled should use this tag.
If you are also concerned with speed or memory optimization consider adding performance-tuning. For questions on how to call or communicate with external programs (e.g. using Run
with already compiled standalone code), please use interoperability.
Useful links
- Compiling Mathematica Expressions tutorial
- The Mathematica Compiler overview
- Compiled Function Operation tutorial on the useful
CompiledFunctionTools`
package
- Compiled Function Operation tutorial on the useful
- List of compilable functions
- How well does Mathematica code exported to C compare to code directly written for C?
- How to compile effectively?
Example questions