systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Boehm (JIRA)" <>
Subject [jira] [Created] (SYSTEMML-1972) Indexing with invalid range does not throw error
Date Tue, 24 Oct 2017 05:55:00 GMT
Matthias Boehm created SYSTEMML-1972:

             Summary: Indexing with invalid range does not throw error
                 Key: SYSTEMML-1972
             Project: SystemML
          Issue Type: Bug
            Reporter: Matthias Boehm

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:
X = matrix(1, 1000, 1);
if( 0!=0 )
  X = cbind(X,X);

This message was sent by Atlassian JIRA

View raw message