WOLFRAM LANGUAGE MESSAGE

CompiledFunction::cfex

DetailsDetails

  • This message is generated when the compiler calls external (uncompiled) evaluation to compute the value of an expression and the result does not have the expected form.
  • This message will often be preceded by other messages that provide additional details about the error.
  • External evaluation is evaluation that is done outside of the compiler.
  • External evaluation is used for expressions that are not recognized by the compiler, such as symbolic global variables.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[CompiledFunction::cfex].

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

The global variable in the CompiledFunction expression should evaluate to a real number:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Compiled evaluation proceeds if the result of external evaluation is a real number:

In[3]:=
Click for copyable input
Out[3]=

Clear the value of cf.

In[4]:=
Click for copyable input