You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Sandeep Narayanaswami (JIRA)" <ji...@apache.org> on 2016/08/19 02:30:21 UTC
[jira] [Assigned] (SYSTEMML-758) PYDML toString sparse displays 1
vs 0 indexing
[ https://issues.apache.org/jira/browse/SYSTEMML-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandeep Narayanaswami reassigned SYSTEMML-758:
----------------------------------------------
Assignee: Sandeep Narayanaswami
> 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
> Assignee: Sandeep Narayanaswami
> 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)