Deron Eriksson created SYSTEMML-758:
---------------------------------------
Summary: PYDML toString sparse displays 1 vs 0 indexing
Key: SYSTEMML-758
URL: https://issues.apache.org/jira/browse/SYSTEMML-758
Project: SystemML
Issue Type: Bug
Components: APIs
Reporter: Deron Eriksson
Priority: Minor
Recently PYDML changed from 1-based indexing to 0-based indexing for matrices.
The toString sparse display needs to be changed from 1-based to 0-based
indexing.
{code}
m = full("1 2 3 4 5 6 7 8 9 10 11 12", rows=4, cols=3)
print(toString(m, sparse=True))
{code}
displays
{code}
1 1 1.000
1 2 2.000
1 3 3.000
2 1 4.000
2 2 5.000
2 3 6.000
3 1 7.000
3 2 8.000
3 3 9.000
4 1 10.000
4 2 11.000
4 3 12.000
{code}
The first line should be
{code}
0 0 1.000
{code}
and the other numbers should be updated accordingly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)