Compile::cprank
Details
-
- This message is generated when the rank of the indicated result cannot be determined.
- Compiled evaluation requires that the tensor rank of every expression be known.
- This message can be generated by compilation of MapThread, MapAt, and Outer.
- Off[message] switches off the message; On[message] switches it on. For example: Off[Compile::cprank].
Examples
Basic Examples (1)
A warning is generated because the rank of the result from Outer cannot be determined:
Compile[{}, Outer[List, {{1}, {2}}, {{4}, {5}}, n], {{n, _Integer}}]Here the arguments in Outer are given explicitly, so the rank of the result can be determined:
Compile[{}, Outer[List, {{1}, {2}}, {{4}, {5}}, 1]]