Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-889

NonDefaultIterator of DenseDoubleVector never reaches the end

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • math

    Description

      NonZeroIterator of DenseDoubleVector never reaches the end.

      This bug can be check by the following snippet of code.

      TestDenseDoubleVector.java
        @Test(timeout=100)
        public void testIterator() {
          double[] expectedRes = new double[] {38, 44, 50, 56, 0, 0, 3, 0, 0, 0};
          DoubleVector vec = new DenseDoubleVector(expectedRes);
          
          Iterator<DoubleVectorElement> itrNonZero = vec.iterateNonZero();
          while (itrNonZero.hasNext()) {
            itrNonZero.next();
          }
        }
      

      Attachments

        1. HAMA-889.patch
          4 kB
          Yexi Jiang

        Activity

          People

            yxjiang Yexi Jiang
            yxjiang Yexi Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: