OpenersNotesSection(Spacer1)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 (RefLink[CompiledFunction, paclet:ref/CompiledFunction]) interpreter.

The return type of an external evaluation can be specified using the third argument in (RefLink[Compile, paclet:ref/Compile]).

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[CompiledFunction::cfte].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)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 the value of cf:

Clear[cf]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CompiledFunction, paclet:ref/CompiledFunction])}})}})