Error Messages/46663
Error message
- Since x has 2 dimensions, the dimension to use for the repeated parameter forward into a literal list is ambiguous.
Cause
You have an expression such as:
Local x[I,J] := I+J;[...x, 0]
where the value of x is being forwarded (splatted) into a literal list. But since x has 2 dimensions, it is ambiguous whether it should expand x along the I index or along the J index.
Remedy
If this is the only instance where x is used, if you want to expand across J, just change it to
Local x[J] := I+J;[...x, 0]
If x is used elsewhere, so that the 2-D size of x is essential, then you can declare the desired index with another local,
You could also use the Concat function instead:
Comments
Enable comment auto-refresher