Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-1008

RemoveEmtpy w/ selection vector and nnz=0 produces wrong output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • SystemML 0.11
    • None
    • None

    Description

      RemoveEmtpy with selection vector always has to respect the selection vector over the actual data. If the input matrix has no non-zero entries, however, we currently produce incorrect results of an empty row/column output vector.

      For example, the following script should print nrow (A) = 10, nrow (C) = 10 but prints nrow (A) = 10, nrow (C) = 1.

      A = matrix (0, rows = 10, cols = 1);
      B = matrix (1, rows = 10, cols = 1);
      C = removeEmpty (target = A, margin = "rows", select = B);
      print ("nrow (A) = " + nrow (A) + ",  nrow (C) = " + nrow (C));
      

      Thanks to ae2015 for catching this.

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: