CompiledFunction::cfse
Details
-
- This message is generated when external evaluation leads to an expression of an unexpected type.
- External evaluation is used to obtain values for symbols and functions that are not handled within the CompiledFunction interpreter.
- Off[message] switches off the message; On[message] switches it on. For example: Off[CompiledFunction::cfse].
Examples
Basic Examples (1)
The compiler assumes by default that the value of the global symbol will be a real number:
cf = Compile[{}, x + 1]Block[{x = 1.7 + 3.2I}, cf[]]The third argument in Compile can be used to specify the return type of external evaluations:
cf = Compile[{}, x + 1, {{x, _Complex}}]Block[{x = 1.7 + 3.2I}, cf[]]Clear[cf]