Felix Schüler created SYSTEMML-1151:
---------------------------------------
Summary: Improve error message for wrong left indexing inside of
for-loops
Key: SYSTEMML-1151
URL: https://issues.apache.org/jira/browse/SYSTEMML-1151
Project: SystemML
Issue Type: Bug
Reporter: Felix Schüler
When left indexing with an index out of the matrix dimensions inside a for
loop, the error message only contains ArrayOutOfBounds information about the
matrix block which does not correspond to actual matrix dimenions. This happens
only when the left-indexing is inside a for-loop.
To reproduce this, run the two snippets below:
Okay:
{code}
A = matrix(2.0, rows=10, cols=10)
A[11,10] = 1.0
print(as.scalar(A[10,10]))
{code}
Not Okay:
{code}
A = matrix(2.0, rows=10, cols=10)
for (i in 1:10) {
A[11,10] = 1.0
}
print(as.scalar(A[10,10]))
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)