CompiledFunction::cfte
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.
- The return type of an external evaluation can be specified using the third argument in Compile.
- Off[message] switches off the message; On[message] switches it on. For example: Off[CompiledFunction::cfte].
Examples
Basic Examples (1)
The compiler assumes that the value of the global symbol will be a vector with real elements:
cf = Compile[{{x, _Real, 1}}, x.y, {{y, _Real, 1}}]cf[{1, 2, 3}]Compiled evaluation proceeds if external evaluation gives an expression of the expected type:
Block[{y = {3, 2, 1}}, cf[{1, 2, 3}]]Clear[cf]