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

Documentation / Mathematica / Built-in Functions / New in Version 3.x / Numerical Computation /


FilledSmallSquare Compile[, , ... , expr] creates a compiled function which evaluates expr assuming numerical values of the .

FilledSmallSquare Compile[, , ... , expr] assumes that is of a type which matches .

FilledSmallSquare Compile[, , , ... , expr] assumes that is a rank array of objects each of a type which matches .

FilledSmallSquare Compile[vars, expr, , , ... ] assumes that subexpressions in expr which match are of types which match .

FilledSmallSquare The types handled by Compile are:

FilledSmallSquare Nested lists given as input to a compiled function must be full arrays of numbers.

FilledSmallSquare Compile handles numerical functions, matrix operations, procedural programming constructs, list manipulation functions, functional programming constructs, etc.

FilledSmallSquare Compile generates a CompiledFunction object.

FilledSmallSquare Compiled code does not handle numerical precision and local variables in the same way as ordinary Mathematica code.

FilledSmallSquare If a compiled function cannot be evaluated with particular arguments using compiled code, ordinary Mathematica code is used instead.

FilledSmallSquare Ordinary Mathematica code can be called from within compiled code. Results obtained from the Mathematica code are assumed to be approximate real numbers, unless specified otherwise by the third argument of Compile.

FilledSmallSquare The number of times and the order in which objects are evaluated by Compile may be different from ordinary Mathematica code.

FilledSmallSquare Compile has attribute HoldAll, and does not by default do any evaluation before compilation.

FilledSmallSquare You can use Compile[ ... , Evaluate[expr]] to specify that expr should be evaluated symbolically before compilation.

FilledSmallSquare See Section 1.11.8 and Section 2.6.15.

FilledSmallSquare See also: Dispatch, Function, InterpolatingFunction, CForm.

FilledSmallSquare New in Version 2; modified in 3.

Further Examples