I’m running a model using reduce_sum. Just realised that I have a dimension mismatch error in my code that isn’t being picked up at compilation. For simplicity, within the partial_sum function for a reduce_sum operation I have the following statement:
int test = j[1:10];
so I’m assigning an array of length 10 to an int array that is declared to be of length 3.
This compiles, and behaves as if test is of length 10.
Shouldn’t it error?