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

SequentialAccessSparseVector inerateNonZeros is incorrect.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.12.2
    • classic-15.0
    • classic
    • None

    Description

      In SequentialAccessSparseVector a bug is noted. When Cuonting Non-Zero elements NonDefaultIterator can, under certain circumstances give an incorrect iterator of size different from the actual non-zeroCounts.

       @Override
        public Iterator<Element> iterateNonZero() {
      
          // TODO: this is a bug, since nonDefaultIterator doesn't hold to non-zero contract.
          return new NonDefaultIterator();
        }
      

      Attachments

        Issue Links

          Activity

            People

              balakuntala Shashanka Balakuntala Srinivasa
              Andrew_Palumbo Andrew Palumbo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: