Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The below script incorrectly returns 100 instead of 98. Although the difference is detected during reconciliation after size propagation through the loop, the indexing hop current does not allow for size reset and thus the correction pass is ineffective here.
X = rand(rows=100, cols=1);
Y = X
# two loop iterationn -> nrow(X)=98
for( i in seq(1,2,1) ) {
n1 = nrow(Y) + 0.0;
Y = Y[2:n1,] - Y[1:n1-1,];
}
print(nrow(Y));