Matthias Boehm created SYSTEMML-2340:
----------------------------------------
Summary: Missing indexing hop size reset on negative reconcile
after loops
Key: SYSTEMML-2340
URL: https://issues.apache.org/jira/browse/SYSTEMML-2340
Project: SystemML
Issue Type: Bug
Reporter: Matthias Boehm
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.
{code}
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));
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)