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

SparseVector and DenseVector hashCode does not conform to the Java standard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.2
    • 0.2
    • classic
    • None

    Description

      The hash codes for SparseVector and DenseVector will not be equal even though equals() may return true. Also, the equals logic is inconsistent because DenseVector takes into account the name parameter but SparseVector does not.

      Attachments

        1. MAHOUT-159.patch
          5 kB
          Mark Desnoyer
        2. MAHOUT-159.patch
          5 kB
          Mark Desnoyer
        3. MAHOUT-159.patch
          6 kB
          Mark Desnoyer
        4. MAHOUT-159.patch
          8 kB
          Mark Desnoyer

        Activity

          People

            gsingers Grant Ingersoll
            mdesnoyer Mark Desnoyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified