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(); } }