You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Matthias Boehm (JIRA)" <ji...@apache.org> on 2017/11/30 22:16:01 UTC
[jira] [Closed] (SYSTEMML-1972) Indexing with invalid range does
not throw error
[ https://issues.apache.org/jira/browse/SYSTEMML-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Boehm closed SYSTEMML-1972.
------------------------------------
Resolution: Fixed
Assignee: Matthias Boehm
Fix Version/s: SystemML 1.0
> Indexing with invalid range does not throw error
> ------------------------------------------------
>
> Key: SYSTEMML-1972
> URL: https://issues.apache.org/jira/browse/SYSTEMML-1972
> Project: SystemML
> Issue Type: Bug
> Reporter: Matthias Boehm
> Assignee: Matthias Boehm
> Fix For: SystemML 1.0
>
>
> Matrix and frame right indexing is subject to rewrites, where we simplify for example {{X[,a]}} to {X}} if the input and output have equal sizes. This rewrite is, however, only valid if the index ranges are valid. We do throw validation errors during parsing, but this does not apply to matrices and index expressions that are unknown during initial compilation.
> For, example the below expressions computes 1000 although it should throw an error:
> {code}
> X = matrix(1, 1000, 1);
> if( 0!=0 )
> X = cbind(X,X);
> print(sum(X[,2]))
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)