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

NonDefaultIterator of DenseDoubleVector never reaches the end

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.0
    • Component/s: math
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: