systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niketan Pansare" <>
Subject Re: Looping over a seq in DML
Date Fri, 23 Sep 2016 23:36:09 GMT
Hi Sandeep,

You are correct, for (i in seq(1,5)) {#do_things} should be equivalent to
for (i in 1:5) {#do_things}. However due to bug which expected third
parameter in seq, a language exception was thrown.  Note: for (i in seq
(1,5,1)) {#do_things} does work, but for (i in seq(1,5)) {#do_things}
doesn't. This bug is fixed in PR


Niketan Pansare
IBM Almaden Research Center
E-mail: npansar At

From:	"Narayanaswami, Sandeep" <>
To:	""
Date:	09/23/2016 02:42 PM
Subject:	Looping over a seq in DML


How does one loop over a seq in DML? As a lapsed R user, I expected for (i
in seq(1,5)) {#do_things} to be equivalent to for (i in 1:5) {#do_things},
but only the latter works. I’d appreciate your input on this.


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/related (inline, None, 0 bytes)
View raw message