systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Matrix indexing in PyDML
Date Fri, 17 Jun 2016 23:20:35 GMT
Hi Sandeep,

You are indeed correct that PyDML uses 0-based indexing (like Python), and that the beginner's
guide is incorrect! Interestingly enough, we do have an open PR that addresses this, so it
should be cleared up upon merging.

Thanks, and please feel free to continue posting questions or feedback here!



Mike Dusenberry

Sent from my iPhone.

> On Jun 17, 2016, at 4:12 PM, Narayanaswami, Sandeep <>
> Hi folks,
> I have only started to play around with SystemML. The documentation here (
says that matrices are supposed to index from 1 in both DML and PyDML. However, the example
code throws an error, clearly indicating out-of-bounds indices.
> at org.apache.sysml.runtime.controlprogram.ForProgramBlock.execute(
> ... 5 more
> Caused by: org.apache.sysml.runtime.DMLRuntimeException: Invalid values for matrix indexing:
[2:2,4:4] must be within matrix dimensions [4,3]
> at
> ...
> The PyDML language reference .doc on the other hand says indexing is 0-based in PyDML.
> I was going to submit a PR to correct the Beginner's Guide, but I wanted to first check
what the intent was.
> Thanks for your help!
> <>
> ________________________________________________________
> The information contained in this e-mail is confidential and/or proprietary to Capital
One and/or its affiliates and may only be used solely in performance of work or services for
Capital One. The information transmitted herewith is intended only for use by the individual
or entity to which it is addressed. If the reader of this message is not the intended recipient,
you are hereby notified that any review, retransmission, dissemination, distribution, copying
or other use of, or taking of any action in reliance upon this information is strictly prohibited.
If you have received this communication in error, please contact the sender and delete the
material from your computer.

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message