Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1415

Clone method on sparse matrices fails if there is an empty row which has not been set explicitly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 0.10.0
    • classic
    • Mac OS X Mavericks, Darwin Kernel Version 13.0.2

    Description

      The clone method of the SparseMatrix class fails with a NullPointerException if there exists an empty row in the matrix which has not been explicitly set. The reason for this problem is that the clone operation iterates over all rows and clones them whether there exists a Vector instance for this row or not. The problem should be easily fixed by iterating only over the existing matrix slices.

      Attachments

        1. MAHOUT-1415.patch
          3 kB
          Till Rohrmann

        Activity

          People

            ssc Sebastian Schelter
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified