represents a function to be evaluated in the Wolfram Engine kernel, even when it is called inside compiled code.
- The function f in KernelFunction[f] can be a built-in Wolfram Language function, a Function object or a function with definitions given by the user.
Basic Examples (1)
Use the Wolfram Engine evaluator to compute the AiryAi function from compiled code:
Execute the compiled function:
The result compares with the direct call:
Call a pure function that executes with the evaluator:
Define a function in the Wolfram Engine:
Call the function from compiled code:
Introduced in 2019