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

Improve PyDML Slicing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 0.10
    • Parser, PythonAPI
    • None

    Description

      Currently, slicing correctly uses inclusive lower and exclusive upper bounds. However, a really useful piece of slicing syntax we are currently missing from PyDML is the ability to have implicit lower or upper bounds, i.e., X[:3,] should return all rows up to (but not including) 3. This means that the implicit lower bound is 0. Similarly, X[2:,] should return all rows starting at row 2 (0-based), which implies that the upper bound is equal to the number of rows of X.

      We should update the grammar to allow these cases, row both row and column slicing. More generally, X[:,:], should also be valid, regardless if it is useful.

      Attachments

        Issue Links

          Activity

            People

              dusenberrymw Mike Dusenberry
              dusenberrymw Mike Dusenberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: