Compile::ctyp1
Details
-
- This message is generated by an invalid specification for a parameter used in Compile.
- Parameter specifications are listed in the first argument of Compile.
- A valid parameter specification gives the symbolic name of the parameter or a list giving the name and the type of the parameter. If only the name of the parameter is given, the type is assumed to be _Real.
- An explicit type specification should be a list of the form {x,t}, giving the name x and the type t of the parameter, or a list of the form {x,t,n} that includes the tensor rank n of the parameter if the parameter is a tensor.
- The type of a parameter can be _Integer, _Real, _Complex, or True|False.
- This particular message is generated if a number is encountered in a position where the name of a parameter is expected.
- Off[message] switches off the message; On[message] switches it on. For example: Off[Compile::ctyp1].
Examples
Basic Examples (1)
An error occurs because a number cannot be used as the name of a parameter in Compile:
