Mahout
  1. Mahout
  2. MAHOUT-159

SparseVector and DenseVector hashCode does not conform to the Java standard

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.2
    • Component/s: Math
    • Labels:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Grant Ingersoll
            Reporter:
            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

                Development