Compiles a function for numerical evaluation.
แตกต่างจากเอกสารอ้างอิง .wl: `Compile` produces a different object
Compile[{x1, x2, …}, expr]
Compile[{{x1, t1}, …}, expr]
Compile[{{x1, t1, n1}, …}, expr]
Compile[vars, expr, {{p1, pt1}, …}]
sqr = Compile[{x}, x x]; sqr[2]
→ 4.Compile[{{n, _Integer, 0}}, Nest[# + 1 &, 0, n]][4]
→ 4Compile[{{x, _Real, 0}}, Clip[x, {-4, 4}]][-5.]
→ -4.Compile[{{g, _Real, 2}}, g][{{1, 1/2}, {3, 4}}]
→ {{1., 0.5}, {3., 4.}}- CompilationOptions — default Automatic
- CompilationTarget — default $CompilationTarget
- Parallelization — default Automatic
- RuntimeAttributes — default { }
- RuntimeOptions — default Automatic