Compile::cpintlt2
Details
-
- This message is generated when the indicated expression is expected to be an integer or a list of integers.
- This message can occur when compiling functions such as Insert in which some of the arguments can be either integers or lists of integers.
- If the symbolic part specification will evaluate to an integer or a list of integers, that information can be included in the third argument of Compile.
- Off[message] switches off the message; On[message] switches it on. For example: Off[Compile::cpintlt2].
Examples
Basic Examples (1)
An error occurs because the symbolic part specification is not an integer:
Compile[{}, Insert[{10, 12, 13}, 11, n]]The symbolic part specification will evaluate to an integer or a list of integers:
Compile[{}, Insert[{10, 12, 13}, 11, n], {{n, _Integer}}]