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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 0.10.0
    • Component/s: Math
    • Labels:
    • Environment:

      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

            • Assignee:
              ssc Sebastian Schelter
              Reporter:
              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